Jeospace API

org.jeospace.measure
Class TimeUnit

java.lang.Object
  extended byorg.jeospace.measure.TimeUnit

public class TimeUnit
extends java.lang.Object

Constant object identifiers of periods of time.

For reference see:
http://ts.nist.gov/ts/htdocs/230/235/h4402/appenc.pdf
which contains values and conversion factors for many non-SI forms of measurement.

http://www.unc.edu/~rowlett/units/index.html
which contains values and anecdotal information on many forms of measurement

Version:
$Revision: 1.1.1.1 $
Author:
Rex Melton

Field Summary
static TimeUnit CALENDAR_YEAR
          Constant time period, one calendar year.
static TimeUnit HOUR
          Constant time period, one hour.
static TimeUnit JULIAN_YEAR
          Constant time period, one Julian year.
static TimeUnit LEAP_YEAR
          Constant time period, one leap calendar year.
static TimeUnit LUNAR_MONTH
          Constant time period, one lunar month.
static TimeUnit MILLISECOND
          Constant time period, one millisecond.
 long milliseconds
          The length of the time period in milliseconds.
static TimeUnit MINUTE
          Constant time period, one minute.
 java.lang.String name
          The common name of the time period.
static TimeUnit SECOND
          Constant time period, one second.
 double seconds
          The length of the time period in seconds.
static TimeUnit SIDEREAL_DAY
          Constant time period, one sidereal day.
static TimeUnit SIDEREAL_YEAR
          Constant time period, one sidereal year.
static TimeUnit SOLAR_DAY
          Constant time period, one solar / Julian day.
static TimeUnit SOLAR_YEAR
          Constant time period, one solar year.
 java.lang.String symbol
          The symbol of the time period
static TimeUnit TROPICAL_YEAR
          Constant time period, one tropical year.
 
Constructor Summary
protected TimeUnit(java.lang.String name, java.lang.String symbol, long milliseconds, double seconds)
          Protected Constructor
 
Method Summary
static TimeUnit[] getTimeUnits()
          Return an array of the defined TimeUnit objects
 java.lang.String toString()
          Return the name of the time period.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MILLISECOND

public static final TimeUnit MILLISECOND
Constant time period, one millisecond.


SECOND

public static final TimeUnit SECOND
Constant time period, one second.


MINUTE

public static final TimeUnit MINUTE
Constant time period, one minute.


HOUR

public static final TimeUnit HOUR
Constant time period, one hour.


SOLAR_DAY

public static final TimeUnit SOLAR_DAY
Constant time period, one solar / Julian day.


SIDEREAL_DAY

public static final TimeUnit SIDEREAL_DAY
Constant time period, one sidereal day.


LUNAR_MONTH

public static final TimeUnit LUNAR_MONTH
Constant time period, one lunar month.


JULIAN_YEAR

public static final TimeUnit JULIAN_YEAR
Constant time period, one Julian year.


SOLAR_YEAR

public static final TimeUnit SOLAR_YEAR
Constant time period, one solar year.


SIDEREAL_YEAR

public static final TimeUnit SIDEREAL_YEAR
Constant time period, one sidereal year.


TROPICAL_YEAR

public static final TimeUnit TROPICAL_YEAR
Constant time period, one tropical year.


CALENDAR_YEAR

public static final TimeUnit CALENDAR_YEAR
Constant time period, one calendar year. Note: This period is for the common year.


LEAP_YEAR

public static final TimeUnit LEAP_YEAR
Constant time period, one leap calendar year.


name

public final java.lang.String name
The common name of the time period.


symbol

public final java.lang.String symbol
The symbol of the time period


milliseconds

public final long milliseconds
The length of the time period in milliseconds.


seconds

public final double seconds
The length of the time period in seconds.

Constructor Detail

TimeUnit

protected TimeUnit(java.lang.String name,
                   java.lang.String symbol,
                   long milliseconds,
                   double seconds)
Protected Constructor

Parameters:
name - the name of the time period.
symbol - the symbol of the time period.
milliseconds - the duration of the time period in milliseconds.
seconds - the duration of the time period in seconds.
Method Detail

getTimeUnits

public static TimeUnit[] getTimeUnits()
Return an array of the defined TimeUnit objects

Returns:
the array of the defined TimeUnit objects

toString

public java.lang.String toString()
Return the name of the time period.

Returns:
the name of the time period.

Jeospace API

Copyright © 2006 - jeospace.org