Code example for TimeZone

Methods: getRawOffset

0
    { 
        if (thisTimeZone == null) {
            // j.u.TimeZone is synchronized, so setting class statics from it 
            // should be OK. 
            thisTimeZone = TimeZone.getDefault();
            LocalTZA = thisTimeZone.getRawOffset();
        } 
    } 
 
    @Override 
    public String getClassName()
    { 
        return "Date"; 
    } 
 
    @Override 
    public Object getDefaultValue(Class<?> typeHint)
    { 
        if (typeHint == null)
            typeHint = ScriptRuntime.StringClass;