|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.history.time.Time
org.jscience.history.time.ChineseTime
public class ChineseTime
A class representing a way to compute time.
| Field Summary | |
|---|---|
static Unit<Duration> |
CHINESE_DAY
A unit of duration equal to 100 (standard name d). |
static Unit<Duration> |
CHINESE_HOUR
A unit of duration equal to 60 (standard name h). |
static Unit<Duration> |
CHINESE_MILLISECOND
A unit of duration equal to 1/1000 s (standard name
ms). |
static Unit<Duration> |
CHINESE_MINUTE
A unit of duration equal to 60 s (standard name
min). |
static BaseUnit<Duration> |
CHINESE_SECOND
The base unit for chinese seconds, which is 0.24 SI seconds. |
static Unit<Duration> |
DAYS_HOURS_MINUTES_SECONDS_MILLIS
DOCUMENT ME! |
static int |
HOURS_PER_DAY
DOCUMENT ME! |
static int |
MILLISECONDS_PER_SECOND
DOCUMENT ME! |
static int |
MINUTES_PER_HOUR
DOCUMENT ME! |
static int |
SECONDS_PER_MINUTE
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
ChineseTime()
Creates a new ChineseClock object. |
|
ChineseTime(double millis)
Creates a new ChineseTime object. |
|
ChineseTime(double days,
double hours,
double minutes,
double seconds,
double millis)
Creates a new ChineseTime object. |
|
| Method Summary | |
|---|---|
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 |
|---|
public static final int HOURS_PER_DAY
public static final int MINUTES_PER_HOUR
public static final int SECONDS_PER_MINUTE
public static final int MILLISECONDS_PER_SECOND
public static final BaseUnit<Duration> CHINESE_SECOND
public static final Unit<Duration> CHINESE_MILLISECOND
1/1000 s (standard name
ms).
public static final Unit<Duration> CHINESE_MINUTE
60 s (standard name
min).
public static final Unit<Duration> CHINESE_HOUR
60 CHINESE_MINUTE (standard name h).
public static final Unit<Duration> CHINESE_DAY
100 CHINESE_HOUR (standard name d).
public static final Unit<Duration> DAYS_HOURS_MINUTES_SECONDS_MILLIS
| Constructor Detail |
|---|
public ChineseTime(double days,
double hours,
double minutes,
double seconds,
double millis)
public ChineseTime(double millis)
millis - DOCUMENT ME!public ChineseTime()
| Method Detail |
|---|
public Amount<Duration> getTime()
getTime in class Timepublic int getMilliseconds()
getMilliseconds in class Timepublic int getSeconds()
getSeconds in class Timepublic int getMinutes()
getMinutes in class Timepublic int getHours()
getHours in class Timepublic int getDays()
getDays in class Timepublic void nextMillisecond()
nextMillisecond in class Timepublic void nextSecond()
nextSecond in class Timepublic void nextMinute()
nextMinute in class Timepublic void nextHour()
nextHour in class Timepublic void nextDay()
nextDay in class Timepublic java.lang.String toString()
toString in class Time
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||