Package org.projectbarbel.histo.model
Class Systemclock
- java.lang.Object
-
- org.projectbarbel.histo.model.Systemclock
-
public class Systemclock extends Object
BarbelHisto
s clock implementation. Can also be used for testing. CallBarbelHistoContext.getBarbelClock()
to fix time when performing specific tests.- Author:
- Niklas Schlimm
-
-
Constructor Summary
Constructors Constructor Description Systemclock()
-
Method Summary
Modifier and Type Method Description ZonedDateTime
now()
Systemclock
useFixedClockAt(ZonedDateTime time)
Systemclock
useSystemDefaultZoneClock()
-
-
-
Method Detail
-
now
public ZonedDateTime now()
-
useFixedClockAt
public Systemclock useFixedClockAt(ZonedDateTime time)
-
useSystemDefaultZoneClock
public Systemclock useSystemDefaultZoneClock()
-
-