java.lang.Object
org.metabit.platform.interfacing.jjournal.Period

public class Period extends Object
this is an actual Period: from Instant, until Instant. java.time. has a misnamed class of the same name which is just another Duration (time vector).
Version:
$Id: $Id
  • Field Details

    • from

      private final Instant from
    • until

      private final Instant until
  • Constructor Details

    • Period

      public Period(Instant instantFrom, Instant instantUntil)
      construct a time range / time period from java Instant values
      Parameters:
      instantFrom - starting time
      instantUntil - ending time
    • Period

      public Period(long microsecondFrom, long microsecondUntil)
      construct a time range / time period from system tick values
      Parameters:
      microsecondFrom - starting time
      microsecondUntil - ending time
  • Method Details

    • getFrom

      public Instant getFrom()
      get starting time.
      Returns:
      java Instant containing the starting time.
    • getUntil

      public Instant getUntil()
      get ending time.
      Returns:
      java Instant containing the ending time.