org.jscience.history.time
Class InternetTime

java.lang.Object
  extended by org.jscience.history.time.Time
      extended by org.jscience.history.time.InternetTime

public class InternetTime
extends Time

DOCUMENT ME!


Field Summary
static Unit<Duration> DAYS_TICKS_MILLIS
          DOCUMENT ME!
static Unit<Duration> INTERNET_DAY
          A unit of duration equal to 1000 INTERNET_TICK (standard name d).
static Unit<Duration> INTERNET_MILLISECOND
          A unit of duration equal to 1/1000 s (standard name ms).
static BaseUnit<Duration> INTERNET_TICK
          The base unit for duration quantities (t).
static int MILLISECONDS_PER_TICK
          DOCUMENT ME!
static int TICKS_PER_DAY
          DOCUMENT ME!
 
Constructor Summary
InternetTime()
          Creates a new InternetTime object.
InternetTime(double millis)
          Creates a new InternetTime object.
InternetTime(double days, double ticks, double millis)
          Creates a new InternetTime object.
 
Method Summary
static int getCurrentInternetTime()
          DOCUMENT ME!
static java.lang.String getCurrentInternetTimeAsString()
          DOCUMENT ME!
 int getDays()
          DOCUMENT ME!
 int getHours()
          DOCUMENT ME!
 int getMilliseconds()
          DOCUMENT ME!
 int getMinutes()
          DOCUMENT ME!
 int getSeconds()
          DOCUMENT ME!
 Amount<Duration> getTime()
          DOCUMENT ME!
 void nextDay()
          DOCUMENT ME!
 void nextHour()
          DOCUMENT ME!
 void nextMillisecond()
          DOCUMENT ME!
 void nextMinute()
          DOCUMENT ME!
 void nextSecond()
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TICKS_PER_DAY

public static final int TICKS_PER_DAY
DOCUMENT ME!

See Also:
Constant Field Values

MILLISECONDS_PER_TICK

public static final int MILLISECONDS_PER_TICK
DOCUMENT ME!

See Also:
Constant Field Values

INTERNET_MILLISECOND

public static final Unit<Duration> INTERNET_MILLISECOND
A unit of duration equal to 1/1000 s (standard name ms).


INTERNET_TICK

public static final BaseUnit<Duration> INTERNET_TICK
The base unit for duration quantities (t).


INTERNET_DAY

public static final Unit<Duration> INTERNET_DAY
A unit of duration equal to 1000 INTERNET_TICK (standard name d).


DAYS_TICKS_MILLIS

public static final Unit<Duration> DAYS_TICKS_MILLIS
DOCUMENT ME!

Constructor Detail

InternetTime

public InternetTime(double days,
                    double ticks,
                    double millis)
Creates a new InternetTime object.


InternetTime

public InternetTime(double millis)
Creates a new InternetTime object.

Parameters:
millis - DOCUMENT ME!

InternetTime

public InternetTime()
Creates a new InternetTime object.

Method Detail

getTime

public Amount<Duration> getTime()
DOCUMENT ME!

Specified by:
getTime in class Time
Returns:
DOCUMENT ME!

getMilliseconds

public int getMilliseconds()
DOCUMENT ME!

Specified by:
getMilliseconds in class Time
Returns:
DOCUMENT ME!

getSeconds

public int getSeconds()
DOCUMENT ME!

Specified by:
getSeconds in class Time
Returns:
DOCUMENT ME!

getMinutes

public int getMinutes()
DOCUMENT ME!

Specified by:
getMinutes in class Time
Returns:
DOCUMENT ME!

getHours

public int getHours()
DOCUMENT ME!

Specified by:
getHours in class Time
Returns:
DOCUMENT ME!

getDays

public int getDays()
DOCUMENT ME!

Specified by:
getDays in class Time
Returns:
DOCUMENT ME!

nextMillisecond

public void nextMillisecond()
DOCUMENT ME!

Specified by:
nextMillisecond in class Time

nextSecond

public void nextSecond()
DOCUMENT ME!

Specified by:
nextSecond in class Time

nextMinute

public void nextMinute()
DOCUMENT ME!

Specified by:
nextMinute in class Time

nextHour

public void nextHour()
DOCUMENT ME!

Specified by:
nextHour in class Time

nextDay

public void nextDay()
DOCUMENT ME!

Specified by:
nextDay in class Time

toString

public java.lang.String toString()
DOCUMENT ME!

Specified by:
toString in class Time
Returns:
DOCUMENT ME!

getCurrentInternetTime

public static int getCurrentInternetTime()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getCurrentInternetTimeAsString

public static java.lang.String getCurrentInternetTimeAsString()
DOCUMENT ME!

Returns:
DOCUMENT ME!