static RegularTimePeriod | createInstance(Class c, Date millisecond, TimeZone zone)- Creates a time period that includes the specified millisecond, assuming
the given time zone.
|
static Class | downsize(Class c)- Returns a subclass of
RegularTimePeriod that is smaller than
the specified class.
|
Date | getEnd()- Returns the date/time that marks the end of the time period.
|
long | getFirstMillisecond()- Returns the first millisecond of the time period, evaluated in the
default time zone.
|
abstract long | getFirstMillisecond(Calendar calendar)- Returns the first millisecond of the time period, evaluated using the
supplied calendar (which incorporates a timezone).
|
long | getFirstMillisecond(TimeZone zone)- Returns the first millisecond of the time period, evaluated within a
specific time zone.
|
long | getLastMillisecond()- Returns the last millisecond of the time period, evaluated in the
default time zone.
|
abstract long | getLastMillisecond(Calendar calendar)- Returns the last millisecond of the time period, evaluated using the
supplied calendar (which incorporates a timezone).
|
long | getLastMillisecond(TimeZone zone)- Returns the last millisecond of the time period, evaluated within a
specific time zone.
|
long | getMiddleMillisecond()- Returns the millisecond closest to the middle of the time period,
evaluated in the default time zone.
|
long | getMiddleMillisecond(Calendar calendar)- Returns the millisecond closest to the middle of the time period,
evaluated using the supplied calendar (which incorporates a timezone).
|
long | getMiddleMillisecond(TimeZone zone)- Returns the millisecond closest to the middle of the time period,
evaluated within a specific time zone.
|
abstract long | getSerialIndex()- Returns a serial index number for the time unit.
|
Date | getStart()- Returns the date/time that marks the start of the time period.
|
abstract RegularTimePeriod | next()- Returns the time period following this one, or
null if some
limit has been reached.
|
abstract RegularTimePeriod | previous()- Returns the time period preceding this one, or
null if some
lower limit has been reached.
|
String | toString()- Returns a string representation of the time period.
|