Class DecimalTime
java.lang.Object
org.episteme.social.history.time.Time
org.episteme.social.history.clock.DecimalTime
- All Implemented Interfaces:
Serializable
Represents time using a decimal system (10h/100m/100s per day).
Based on the French Revolutionary Time system.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
ConstructorsConstructorDescriptionDecimalTime(double totalMillis) DecimalTime(double days, double hours, double minutes, double seconds, double millis) -
Method Summary
-
Field Details
-
HOURS_PER_DAY
public static final int HOURS_PER_DAY- See Also:
-
MINUTES_PER_HOUR
public static final int MINUTES_PER_HOUR- See Also:
-
SECONDS_PER_MINUTE
public static final int SECONDS_PER_MINUTE- See Also:
-
MILLISECONDS_PER_SECOND
public static final int MILLISECONDS_PER_SECOND- See Also:
-
-
Constructor Details
-
DecimalTime
public DecimalTime(double days, double hours, double minutes, double seconds, double millis) -
DecimalTime
public DecimalTime(double totalMillis) -
DecimalTime
public DecimalTime()
-
-
Method Details
-
getTime
-
getMilliseconds
public int getMilliseconds()- Specified by:
getMillisecondsin classTime
-
getSeconds
public int getSeconds()- Specified by:
getSecondsin classTime
-
getMinutes
public int getMinutes()- Specified by:
getMinutesin classTime
-
getHours
-
getDays
-
nextMillisecond
public void nextMillisecond()- Specified by:
nextMillisecondin classTime
-
nextSecond
public void nextSecond()- Specified by:
nextSecondin classTime
-
nextMinute
public void nextMinute()- Specified by:
nextMinutein classTime
-
nextHour
-
nextDay
-
toCalendar
-
toString
-