Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.dynjs.runtime.builtins.types.date.prototype;
 
 
 public class GetSeconds extends AbstractDateFunction {
    public GetSeconds(GlobalObject globalObject) {
        super(globalObject);
    }
    @Override
    public Object call(ExecutionContext contextObject selfObject... args) {
        if (!(self instanceof DynDate)) {
            throw new ThrowException(contextcontext.createTypeError("getMinutes() may only be used with Dates"));
        }
        DynDate date = (DynDateself;
        if (date.isNaN()) {
            return .;
        }
        long t = date.getTimeValue();
        return (longsecFromTime(localTime(contextt));
    }
New to GrepCode? Check out our FAQ X