- //#switch(method)
- case "toString": return date_format(date, FORMATSPEC_FULL);
- case "toTimeString": return date_format(date, FORMATSPEC_TIME);
- case "toDateString": return date_format(date, FORMATSPEC_DATE);
- case "toLocaleString": return toLocaleString(date);
- case "toLocaleTimeString": return toLocaleTimeString(date);
- case "toLocaleDateString": return toLocaleDateString(date);
- case "toUTCString": return toUTCString(date);
- case "valueOf": return N(this.date);
- case "getTime": return N(this.date);
- case "getYear": return N(getYear(date));
- case "getFullYear": return N(YearFromTime(LocalTime(date)));
- case "getUTCFullYear": return N(YearFromTime(date));
- case "getMonth": return N(MonthFromTime(LocalTime(date)));
- case "getUTCMonth": return N(MonthFromTime(date));
- case "getDate": return N(DateFromTime(LocalTime(date)));
- case "getUTCDate": return N(DateFromTime(date));
- case "getDay": return N(WeekDay(LocalTime(date)));
- case "getUTCDay": return N(WeekDay(date));
- case "getHours": return N(HourFromTime(LocalTime(date)));
- case "getUTCHours": return N(HourFromTime(date));
- case "getMinutes": return N(MinFromTime(LocalTime(date)));
- case "getUTCMinutes": return N(MinFromTime(date));
- case "getSeconds": return N(SecFromTime(LocalTime(date)));
- case "getUTCSeconds": return N(SecFromTime(date));
- case "getMilliseconds": return N(msFromTime(LocalTime(date)));
- case "getUTCMilliseconds": return N(msFromTime(date));
- case "getTimezoneOffset": return N(getTimezoneOffset(date));
+ //#switch(JSU.toString(method))
+ case "toString": return JSU.S(date_format(date, FORMATSPEC_FULL));
+ case "toTimeString": return JSU.S(date_format(date, FORMATSPEC_TIME));
+ case "toDateString": return JSU.S(date_format(date, FORMATSPEC_DATE));
+ case "toLocaleString": return JSU.S(toLocaleString(date));
+ case "toLocaleTimeString": return JSU.S(toLocaleTimeString(date));
+ case "toLocaleDateString": return JSU.S(toLocaleDateString(date));
+ case "toUTCString": return JSU.S(toUTCString(date));
+ case "valueOf": return JSU.N(this.date);
+ case "getTime": return JSU.N(this.date);
+ case "getYear": return JSU.N(getYear(date));
+ case "getFullYear": return JSU.N(YearFromTime(LocalTime(date)));
+ case "getUTCFullYear": return JSU.N(YearFromTime(date));
+ case "getMonth": return JSU.N(MonthFromTime(LocalTime(date)));
+ case "getUTCMonth": return JSU.N(MonthFromTime(date));
+ case "getDate": return JSU.N(DateFromTime(LocalTime(date)));
+ case "getUTCDate": return JSU.N(DateFromTime(date));
+ case "getDay": return JSU.N(WeekDay(LocalTime(date)));
+ case "getUTCDay": return JSU.N(WeekDay(date));
+ case "getHours": return JSU.N(HourFromTime(LocalTime(date)));
+ case "getUTCHours": return JSU.N(HourFromTime(date));
+ case "getMinutes": return JSU.N(MinFromTime(LocalTime(date)));
+ case "getUTCMinutes": return JSU.N(MinFromTime(date));
+ case "getSeconds": return JSU.N(SecFromTime(LocalTime(date)));
+ case "getUTCSeconds": return JSU.N(SecFromTime(date));
+ case "getMilliseconds": return JSU.N(msFromTime(LocalTime(date)));
+ case "getUTCMilliseconds": return JSU.N(msFromTime(date));
+ case "getTimezoneOffset": return JSU.N(getTimezoneOffset(date));