Lines Matching defs:Time

30  * {@link java.util.GregorianCalendar} classes. An instance of the Time class represents
56 public class Time {
137 * The timezone for this Time. Should not be null.
167 * Construct a Time object in the timezone named by the string
172 public Time(String timezoneId) {
180 * Construct a Time object in the default timezone. The time is initialized to
183 public Time() {
188 * A copy constructor. Construct a Time object by copying the given
189 * Time object. No normalization occurs.
193 public Time(Time other) {
198 /** Initialize the Time to 00:00:00 1/1/1970 in the specified timezone. */
319 * Compare two {@code Time} objects and return a negative number if {@code
325 * either {@code Time} have been set to a local time that contradicts the
328 * @param a first {@code Time} instance to compare
329 * @param b second {@code Time} instance to compare
336 public static int compare(Time a, Time b) {
386 * field of this Time class is set to true and the <code>hour</code>,
398 * Time time = new Time();
689 * Sets the time of the given Time object to the current time.
699 * <em>not</em> change any of the fields in this Time object. If you want
700 * to normalize the fields in this Time object and also get the milliseconds
711 * the "isDst" field in this Time object and will instead figure out the
713 * Time object. The only case where this method cannot figure out the
716 * from Daylight-Saving Time to Standard Time.
723 * Time time = new Time();
741 * or {@link #set(Time)} or after parsing a date string.
756 * Sets the fields in this Time object given the UTC milliseconds. After
772 * <p>The same as format("%Y%m%dT%H%M%S"), or format("%Y%m%dT%H%M%SZ") for a Time with a
781 * Copy the value of that to this Time object. No normalization happens.
783 public void set(Time that) {
840 * Returns true if the time represented by this Time object occurs before
844 * Equivalent to {@code Time.compare(this, that) < 0}. See
845 * {@link #compare(Time, Time)} for details.
847 * @param that a given Time object to compare against
850 public boolean before(Time that) {
851 return Time.compare(this, that) < 0;
856 * Returns true if the time represented by this Time object occurs after
860 * Equivalent to {@code Time.compare(this, that) > 0}. See
861 * {@link #compare(Time, Time)} for details.
863 * @param that a given Time object to compare against
866 public boolean after(Time that) {
867 return Time.compare(this, that) > 0;
878 * Computes the week number according to ISO 8601. The current Time
907 Time temp = new Time(this);
950 public static boolean isEpoch(Time time) {
981 * the same timezone that is set in this Time object. The "gmtoff" field
983 * GMT offset than whatever is currently stored in this Time object anyway.
996 * @param julianDay the Julian day in the timezone for this Time object
1058 * This class originated as a port of a native C++ class ("android.Time") to pure Java. It is
1252 public void copyFieldsToTime(Time time) {
1270 public void copyFieldsFromTime(Time time) {