Athena::Clock
Inherits Athena::Clock::Interface < Reference < Object
Decouples applications from the system clock.
Constants
VERSION = "0.3.0"
Constructors
Class methods
clock
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.
Instance methods
in_location(location : Time::Location) : self
Returns a new clock instance set to the provided location.