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(GlobalObject globalObject) {
        super(globalObject);
    }
    @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);
    }
New to GrepCode? Check out our FAQ X