| java.lang.Object sun.tools.javazic.Time
Time | class Time (Code) | | Time class represents the "AT" field and other time related information.
since: 1.4 |
Constructor Summary | |
| Time() | | Time(long time) |
Method Summary | |
static long | getCurrentTime() | static long | getLocalTime(int year, int month, RuleDay day, int save, int gmtOffset, Time time) Converts the given Gregorian calendar field values to local time. | static long | getLocalTime(int year, int month, int day, long time) Converts the given Gregorian calendar field values to local time. | static long | getLocalTime(int year, int month, int day, int time) Equivalent to getLocalTime(year, month, day, (long)time) . | static long | getLocalTime(int year, int month, RuleDay day, long time) Equivalent to
Time.getLocalTime(int,int,RuleDay,int)getLocalTime(year, month, day, (int) time) . | static long | getLocalTime(int year, int month, RuleDay day, int time) Converts the given Gregorian calendar field values to local time. | long | getTime() | int | getType() | String | getTypeForSimpleTimeZone() Converts the type to a string that represents the type in the
SimpleTimeZone time mode. | boolean | isSTD() | boolean | isUTC() | boolean | isWall() | static Time | parse(String time) Parses the given "AT" field and constructs a Time object. | void | setType(int type) | static String | toFormedString(int ms) Converts the given millisecond value to a string for a
SimpleTimeZone parameter. | static String | toGMTFormat(String ms) Converts the given milliseconds string to a "GMT[+-]hh:mm" string. |
getCurrentTime | static long getCurrentTime()(Code) | | |
getLocalTime | static long getLocalTime(int year, int month, RuleDay day, int save, int gmtOffset, Time time)(Code) | | Converts the given Gregorian calendar field values to local time.
Local time is represented by the amount of milliseconds from
January 1, 1970 0:00 GMT.
Parameters: year - the year value Parameters: month - the month value Parameters: day - the day represented by RuleDay Parameters: save - the amount of daylight time in milliseconds Parameters: gmtOffset - the GMT offset in milliseconds Parameters: time - the time of the day represented by Time local time |
getLocalTime | static long getLocalTime(int year, int month, int day, long time)(Code) | | Converts the given Gregorian calendar field values to local time.
Local time is represented by the amount of milliseconds from
January 1, 1970 0:00 GMT.
Parameters: year - the year value Parameters: month - the month value Parameters: day - the day value Parameters: time - the time of the day in milliseconds local time |
getLocalTime | static long getLocalTime(int year, int month, int day, int time)(Code) | | Equivalent to getLocalTime(year, month, day, (long)time) .
Parameters: year - the year value Parameters: month - the month value Parameters: day - the day value Parameters: time - the time of the day in milliseconds local time |
getLocalTime | static long getLocalTime(int year, int month, RuleDay day, long time)(Code) | | Equivalent to
Time.getLocalTime(int,int,RuleDay,int)getLocalTime(year, month, day, (int) time) .
Parameters: year - the year value Parameters: month - the month value Parameters: day - the day represented by RuleDay Parameters: time - the time of the day represented by Time local time |
getLocalTime | static long getLocalTime(int year, int month, RuleDay day, int time)(Code) | | Converts the given Gregorian calendar field values to local time.
Local time is represented by the amount of milliseconds from
January 1, 1970 0:00 GMT.
Parameters: year - the year value Parameters: month - the month value Parameters: day - the day represented by RuleDay Parameters: time - the time of the day represented by Time local time |
getTypeForSimpleTimeZone | String getTypeForSimpleTimeZone()(Code) | | Converts the type to a string that represents the type in the
SimpleTimeZone time mode. (e.g., "SimpleTimeZone.WALL_TIME").
the converted string or null if the type is undefined. |
isSTD | boolean isSTD()(Code) | | true if the time is represented in standard time. |
isUTC | boolean isUTC()(Code) | | true if the time is represented in UTC time. |
isWall | boolean isWall()(Code) | | true if the time is represented in wall-clock time. |
parse | static Time parse(String time)(Code) | | Parses the given "AT" field and constructs a Time object.
Parameters: the - "AT" field string the Time object |
setType | void setType(int type)(Code) | | |
toFormedString | static String toFormedString(int ms)(Code) | | Converts the given millisecond value to a string for a
SimpleTimeZone parameter.
Parameters: ms - the millisecond value the string in a human readable form |
toGMTFormat | static String toGMTFormat(String ms)(Code) | | Converts the given milliseconds string to a "GMT[+-]hh:mm" string.
Parameters: ms - the milliseconds string |
|
|