Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.dynjs.runtime.builtins.types.date.prototype;
 
 
 
 public class ToTimeString extends DateTimeFormatter {
     public ToTimeString(GlobalContext globalContext) {
        super(globalContext);
    }
    @Override
    public String format(ExecutionContext contextlong t) {
        Calendar c = Calendar.getInstance(context.getTimeZone());
        c.setTimeInMillis(t);
        return String.format("%1$tH:%1$tM:%1$tS GMT%1$tz (%1$tZ)"c);
    }
    
    @Override
    public void setFileName() {
        this. = "org/dynjs/runtime/builtins/types/date/prototype/ToTimeString.java";
    }
    @Override
    public void setupDebugContext() {
        this. = "<native function: toTimeString>";
    }
New to GrepCode? Check out our FAQ X