Lines Matching defs:Time

28  * {@link java.util.GregorianCalendar} classes. An instance of the Time class represents
33 public class Time {
114 * The timezone for this Time. Should not be null.
160 * Construct a Time object in the timezone named by the string
165 public Time(String timezone) {
178 * Construct a Time object in the default timezone. The time is initialized to
181 public Time() {
186 * A copy constructor. Construct a Time object by copying the given
187 * Time object. No normalization occurs.
191 public Time(Time other) {
289 * Compare two {@code Time} objects and return a negative number if {@code
293 * @param a first {@code Time} instance to compare
294 * @param b second {@code Time} instance to compare
301 public static int compare(Time a, Time b) {
311 private static native int nativeCompare(Time a, Time b);
321 synchronized (Time.class) {
391 * field of this Time class is set to true and the <code>hour</code>,
403 * Time time = new Time();
481 * Sets the time of the given Time object to the current time.
489 * <em>not</em> change any of the fields in this Time object. If you want
490 * to normalize the fields in this Time object and also get the milliseconds
501 * the "isDst" field in this Time object and will instead figure out the
503 * Time object. The only case where this method cannot figure out the
506 * from Daylight-Saving Time to Standard Time.
513 * Time time = new Time();
531 * or {@link #set(Time)} or after parsing a date string.
536 * Sets the fields in this Time object given the UTC milliseconds. After
553 * Copy the value of that to this Time object. No normalization happens.
555 public void set(Time that) {
612 * Returns true if the time represented by this Time object occurs before
615 * @param that a given Time object to compare against
618 public boolean before(Time that) {
619 return Time.compare(this, that) < 0;
624 * Returns true if the time represented by this Time object occurs after
627 * @param that a given Time object to compare against
630 public boolean after(Time that) {
631 return Time.compare(this, that) > 0;
642 * Computes the week number according to ISO 8601. The current Time
671 Time temp = new Time(this);
711 public static boolean isEpoch(Time time) {
740 * the same timezone that is set in this Time object. The "gmtoff" field
742 * GMT offset than whatever is currently stored in this Time object anyway.
755 * @param julianDay the Julian day in the timezone for this Time object