Uses of Interface
org.enblom.time.Time

Uses of Time in org.enblom.time
 

Methods in org.enblom.time that return Time
 Time TimeFactory.create(DayDate date, TimeOfDay timeOfDay)
          Creates a new Time instance representing the given time of day of the given date.
 Time TimeFactory.deserialize(String time)
          Creates a new Time object with time of the given string serialization, as returned by serialize()
 Time TimeFactory.fromJavaUtilDate(Date date)
          Converts a Date to a Time object, using the default time zone.
 Time TimeFactory.fromJavaUtilDate(Date date, TimeZone timeZone)
          Converts a Date to a Time object, using the given time zone.
 Time TimeFactory.fromLong(long time)
          Converts a long, as returned from toLong() to a Time object.
 Time TimeFactory.getDefault()
          Returns a default time value: 1970-01-01 00:00:00.000 (the UNIX epoch time).
static Time TimeUtils.max(Time t1, Time t2)
          Finds the maximum of two times.
static Time TimeUtils.min(Time t1, Time t2)
          Finds the minimum of two times.
static Time TimeUtils.moveToTimeZone(Time time, TimeZone timeZone, TimeZone newTimeZone)
          Given a time with a time zone, calculate the corresponding time in another time zone.
 Time TimeFactory.now()
           
 Time TimeFactory.parse(DayDate date, int hour, int minute, int second)
          Creates a new Time object, if possible, from the given parameters.
 Time TimeFactory.parse(DayDate date, int hour, int minute, int second, int millis)
          Creates a new Time object, if possible, from the given parameters.
 Time TimeFactory.parse(DayDate date, String hour, String minute, String second)
          Creates a new Time object, if possible, from the given parameters.
 Time TimeFactory.parse(DayDate date, String hour, String minute, String second, String millis)
          Creates a new Time object, if possible, from the given parameters.
 Time TimeFactory.parse(int year, int month, int day, int hour, int minute, int second)
          Creates a new Time object, if possible, from the given parameters.
 Time TimeFactory.parse(int year, int month, int day, int hour, int minute, int second, int millis)
          Creates a new Time object, if possible, from the given parameters.
 Time TimeFactory.parse(String time)
          Creates a new Time object, if possible, from the given representation.
 Time TimeFactory.parse(String date, int hour, int minute, int second)
          Creates a new Time object, if possible, from the given parameters.
 Time TimeFactory.parse(String date, int hour, int minute, int second, int millis)
          Creates a new Time object, if possible, from the given parameters.
 Time TimeFactory.parse(String date, String hour, String minute, String second)
          Creates a new Time object, if possible, from the given parameters.
 Time TimeFactory.parse(String date, String hour, String minute, String second, String millis)
          Creates a new Time object, if possible, from the given parameters.
 Time TimeFactory.parse(String year, String month, String day, String hour, String minute, String second)
          Creates a new Time object, if possible, from the given parameters.
 Time TimeFactory.parse(String year, String month, String day, String hour, String minute, String second, String millis)
          Creates a new Time object, if possible, from the given parameters.
 Time TimeFactory.parse(String date, TimeOfDay timeOfDay)
          Creates a new Time object, if possible, from the given parameters.
 Time Time.plusDays(int offset)
          Adds or subtracts the given number of days to this time.
 Time Time.plusHours(int offset)
          Adds or subtracts the given number of hours to this time.
 Time Time.plusMillis(long offset)
          Adds or subtracts the given number of milliseconds to this time.
 Time Time.plusMinutes(long offset)
          Adds or subtracts the given number of minutes to this time.
 Time Time.plusMonths(int offset)
          Adds or subtracts the given number of months to this time.
 Time Time.plusSeconds(long offset)
          Adds or subtracts the given number of seconds to this time.
 Time Time.plusYears(int offset)
          Adds or subtracts the given number of years to this time.
 Time TimeFactory.unpack(long time)
          Converts a long, as returned from pack() to a Time object.
 Time TimeFactory.utc()
           
 

Methods in org.enblom.time with parameters of type Time
static int TimeUtils.differenceInDays(Time later, Time earlier)
          Calculates the difference in whole days between the two given times.
static long TimeUtils.differenceInMillis(Time later, Time earlier)
          Calculates the difference in milliseconds between the two given times.
 boolean Time.isAfter(Time time)
          Determines if this is after (inclusive) the given time.
 boolean Time.isBefore(Time time)
          Determines if this is before (exclusive) the given time.
 boolean Time.isLaterDayThan(Time time)
          Determines whether this is in a later day than the given time.
 boolean Time.isLaterHourThan(Time time)
          Determines whether this is in a later hour than the given time.
 boolean Time.isLaterMinuteThan(Time time)
          Determines whether this is in a later minute than the given time.
 boolean Time.isLaterMonthThan(Time time)
          Determines whether this is in a later month than the given time.
 boolean Time.isLaterSecondThan(Time time)
          Determines whether this is in a later second than the given time.
 boolean Time.isLaterYearThan(Time time)
          Determines whether this is in a later year than the given time.
 boolean Time.isSameDayAs(Time time)
          Determines whether this is in the same day (of the same year) as the given time.
 boolean Time.isSameHourAs(Time time)
          Determines whether this is in the same hour (of the same day and year) as the given time.
 boolean Time.isSameMinuteAs(Time time)
          Determines whether this is in the same minute (of the same hour, day and year) as the given time.
 boolean Time.isSameMonthAs(Time time)
          Determines whether this is in the same month and the same year as the given time.
 boolean Time.isSameSecondAs(Time time)
          Determines whether this is in the same second (of the same minute, hour, day and year) as the given time.
 boolean Time.isSameYearAs(Time time)
          Determines whether this is in the same year as the given time.
static Time TimeUtils.max(Time t1, Time t2)
          Finds the maximum of two times.
static Time TimeUtils.min(Time t1, Time t2)
          Finds the minimum of two times.
static Time TimeUtils.moveToTimeZone(Time time, TimeZone timeZone, TimeZone newTimeZone)
          Given a time with a time zone, calculate the corresponding time in another time zone.
 



Copyright © 2013. All Rights Reserved.