class Athena::Clock
inherits Reference
#
Decouples applications from the system clock.
Included modules
Athena::Clock::Interface
Constants#
VERSION = "0.2.0"#
Constructors#
Class methods#
.clock : ACLK::Interface#
Represents the global clock used by all Athena::Clock instances.
Note
It is preferable injecting an Athena::Clock::Interface when possible versus using the global clock getter.
.clock=(clock : ACLK::Interface)#
Represents the global clock used by all Athena::Clock instances.
Note
It is preferable injecting an Athena::Clock::Interface when possible versus using the global clock getter.
Methods#
#in_location(location : Time::Location) : self#
Returns a new clock instance set to the provided location.