Class Period
java.lang.Object
org.metabit.platform.interfacing.jjournal.Period
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
from
-
until
-
-
Constructor Details
-
Period
construct a time range / time period from java Instant values- Parameters:
instantFrom- starting timeinstantUntil- ending time
-
Period
public Period(long microsecondFrom, long microsecondUntil) construct a time range / time period from system tick values- Parameters:
microsecondFrom- starting timemicrosecondUntil- ending time
-
-
Method Details
-
getFrom
get starting time.- Returns:
- java Instant containing the starting time.
-
getUntil
get ending time.- Returns:
- java Instant containing the ending time.
-