Example usage for Java android.text.format Time fields, constructors, methods, implement or subclass
The text is from its open source code.
String | TIMEZONE_UTC |
int | EPOCH_JULIAN_DAY The Julian day of the epoch, that is, January 1, 1970 on the Gregorian calendar. |
int | MONTH_DAY |
int | SUNDAY |
int | MONDAY |
int | TUESDAY |
int | WEDNESDAY |
int | THURSDAY |
int | FRIDAY |
int | SATURDAY |
Time() Construct a Time object in the default timezone. | |
Time(String timezoneId) Construct a Time object in the timezone named by the string argument "timezone". | |
Time(Time other) A copy constructor. |
boolean | after(Time that) Returns true if the time represented by this Time object occurs after the given time. |
boolean | before(Time that) Returns true if the time represented by this Time object occurs before the given time. |
void | clear(String timezoneId) Clears all values, setting the timezone to the given timezone. |
int | compare(Time a, Time b) Compare two Time objects and return a negative number if a is less than b , a positive number if a is greater than b , or 0 if they are equal. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
String | format(String format) Print the current value given the format string provided. |
String | format2445() Format according to RFC 2445 DATE-TIME type. |
String | format3339(boolean allDay) Return a string in the RFC 3339 format. |
int | getActualMaximum(int field) Return the maximum possible value for the given field given the value of the other fields. |
String | getCurrentTimezone() Returns the timezone string that is currently set for the device. |
int | getJulianDay(long millis, long gmtoff) Computes the Julian day number for a point in time in a particular timezone. |
long | normalize(boolean ignoreDst) Ensures the values in each field are in range. |
boolean | parse(String s) Parses a date-time string in either the RFC 2445 format or an abbreviated format that does not include the "time" field. |
boolean | parse3339(String s) Parse a time in RFC 3339 format. |
void | set(long millis) Sets the fields in this Time object given the UTC milliseconds. |
void | set(Time that) Copy the value of that to this Time object. |
void | set(int second, int minute, int hour, int monthDay, int month, int year) Sets the fields. |
void | set(int monthDay, int month, int year) Sets the date from the given fields. |
long | setJulianDay(int julianDay) Sets the time from the given Julian day number, which must be based on the same timezone that is set in this Time object. |
void | setToNow() Sets the time of the given Time object to the current time. |
void | switchTimezone(String timezone) Convert this time object so the time represented remains the same, but is instead located in a different timezone. |
long | toMillis(boolean ignoreDst) Converts this time to milliseconds. |
String | toString() Return the current time in YYYYMMDDTHHMMSS<tz> format |