Class ModernTime

java.lang.Object
org.episteme.social.history.time.Time
org.episteme.social.history.clock.ModernTime
All Implemented Interfaces:
Serializable

public class ModernTime extends Time
Standard representation of time using the Gregorian/Modern system (24h/60m/60s).
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Field Details

  • Constructor Details

    • ModernTime

      public ModernTime(double days, double hours, double minutes, double seconds, double millis)
    • ModernTime

      public ModernTime(double totalMillis)
    • ModernTime

      public ModernTime()
  • Method Details

    • getTime

      public Quantity<Time> getTime()
      Description copied from class: Time
      Returns the total elapsed time as a quantity.
      Specified by:
      getTime in class Time
      Returns:
      the amount of time
    • getMilliseconds

      public int getMilliseconds()
      Specified by:
      getMilliseconds in class Time
    • getSeconds

      public int getSeconds()
      Specified by:
      getSeconds in class Time
    • getMinutes

      public int getMinutes()
      Specified by:
      getMinutes in class Time
    • getHours

      public int getHours()
      Specified by:
      getHours in class Time
    • getDays

      public int getDays()
      Specified by:
      getDays in class Time
    • nextMillisecond

      public void nextMillisecond()
      Specified by:
      nextMillisecond in class Time
    • nextSecond

      public void nextSecond()
      Specified by:
      nextSecond in class Time
    • nextMinute

      public void nextMinute()
      Specified by:
      nextMinute in class Time
    • nextHour

      public void nextHour()
      Specified by:
      nextHour in class Time
    • nextDay

      public void nextDay()
      Specified by:
      nextDay in class Time
    • toCalendar

      public Calendar toCalendar()
    • getTimeInSeconds

      public double getTimeInSeconds()
    • toString

      public String toString()
      Specified by:
      toString in class Time