.beat Time v1.0.0 BeatTime View Source
Utilities to work with Swatch Internet Time (.beat time).
- Every day has 1000.beats.
- Every .beat has 86_400 milliseconds.
- There's no notion of time zones: it's an universal time system based on UTC+01.
Link to this section Summary
Functions
Returns the text representation of a .beat time.
Returns the current .beat time.
Returns the .beat time representation of a given UNIX time.
Link to this section Types
Link to this type
t(integer)
View Source
t(integer)
View Source
t(integer) :: {integer}
t(integer) :: {integer}
Link to this section Functions
Link to this function
format(beat_time)
View Source
format(beat_time)
View Source
format(BeatTime.t(integer())) :: String.t()
format(BeatTime.t(integer())) :: String.t()
Returns the text representation of a .beat time.
Link to this function
now()
View Source
now()
View Source
now() :: BeatTime.t(integer())
now() :: BeatTime.t(integer())
Returns the current .beat time.
Link to this function
to_beats(current)
View Source
to_beats(current)
View Source
to_beats(integer()) :: BeatTime.t(integer())
to_beats(integer()) :: BeatTime.t(integer())
Returns the .beat time representation of a given UNIX time.