org.jscience.history.time
Class HexadecimalTime

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

public class HexadecimalTime
extends Time

A class representing a way to compute time.


Field Summary
static Unit<Duration> DAYS_HOURS_MAXIMES_MINUTES_SECONDS_MILLIS
          DOCUMENT ME!
static Unit<Duration> HEXADECIMAL_DAY
          A unit of duration equal to 16 HEXADECIMAL_HOUR (standard name d).
static Unit<Duration> HEXADECIMAL_HOUR
          A unit of duration equal to 10 HEXADECIMAL_MINUTE (standard name h).
static Unit<Duration> HEXADECIMAL_MAXIME
          A unit of duration equal to 16 HEXADECIMAL_MINUTE (standard name M).
static Unit<Duration> HEXADECIMAL_MILLISECOND
          A unit of duration equal to 1/1000 s (standard name ms).
static Unit<Duration> HEXADECIMAL_MINUTE
          A unit of duration equal to 16 s (standard name min).
static BaseUnit<Duration> HEXADECIMAL_SECOND
          The base unit for decimal seconds, which is about 1,318359375 SI seconds.
static int HOURS_PER_DAY
          DOCUMENT ME!
static int MAXIMES_PER_HOUR
          DOCUMENT ME!
static int MILLISECONDS_PER_SECOND
          DOCUMENT ME!
static int MINUTES_PER_MAXIME
          DOCUMENT ME!
static int SECONDS_PER_MINUTE
          DOCUMENT ME!
 
Constructor Summary
HexadecimalTime()
          Creates a new HexadecimalTime object.
HexadecimalTime(double millis)
          Creates a new HexadecimalTime object.
HexadecimalTime(double days, double hours, double maximes, double minutes, double seconds, double millis)
          Creates a new HexadecimalTime object.
 
Method Summary
 int getDays()
          DOCUMENT ME!
 int getHours()
          DOCUMENT ME!
 int getMaximes()
          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 nextMaxime()
          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

HOURS_PER_DAY

public static final int HOURS_PER_DAY
DOCUMENT ME!

See Also:
Constant Field Values

MAXIMES_PER_HOUR

public static final int MAXIMES_PER_HOUR
DOCUMENT ME!

See Also:
Constant Field Values

MINUTES_PER_MAXIME

public static final int MINUTES_PER_MAXIME
DOCUMENT ME!

See Also:
Constant Field Values

SECONDS_PER_MINUTE

public static final int SECONDS_PER_MINUTE
DOCUMENT ME!

See Also:
Constant Field Values

MILLISECONDS_PER_SECOND

public static final int MILLISECONDS_PER_SECOND
DOCUMENT ME!

See Also:
Constant Field Values

HEXADECIMAL_SECOND

public static final BaseUnit<Duration> HEXADECIMAL_SECOND
The base unit for decimal seconds, which is about 1,318359375 SI seconds.


HEXADECIMAL_MILLISECOND

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


HEXADECIMAL_MINUTE

public static final Unit<Duration> HEXADECIMAL_MINUTE
A unit of duration equal to 16 s (standard name min).


HEXADECIMAL_MAXIME

public static final Unit<Duration> HEXADECIMAL_MAXIME
A unit of duration equal to 16 HEXADECIMAL_MINUTE (standard name M).


HEXADECIMAL_HOUR

public static final Unit<Duration> HEXADECIMAL_HOUR
A unit of duration equal to 10 HEXADECIMAL_MINUTE (standard name h).


HEXADECIMAL_DAY

public static final Unit<Duration> HEXADECIMAL_DAY
A unit of duration equal to 16 HEXADECIMAL_HOUR (standard name d).


DAYS_HOURS_MAXIMES_MINUTES_SECONDS_MILLIS

public static final Unit<Duration> DAYS_HOURS_MAXIMES_MINUTES_SECONDS_MILLIS
DOCUMENT ME!

Constructor Detail

HexadecimalTime

public HexadecimalTime(double days,
                       double hours,
                       double maximes,
                       double minutes,
                       double seconds,
                       double millis)
Creates a new HexadecimalTime object.


HexadecimalTime

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

Parameters:
millis - DOCUMENT ME!

HexadecimalTime

public HexadecimalTime()
Creates a new HexadecimalTime 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!

getMaximes

public int getMaximes()
DOCUMENT ME!

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

nextMaxime

public void nextMaxime()
DOCUMENT ME!


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!