beat_time

Utilities to work with Swatch Internet Time (.beat time).


Keywords
beat-time, elixir, erlang, swatch-internet-time, time
License
MIT

Documentation

.beat Time

Hex version Hex license

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.

Installation

def deps do
  [
    {:beat_time, "~> 1.0.0"}
  ]
end

Usage

  iex> BeatTime.now()
  %BeatTime{value: 300}

  iex> BeatTime.now() |> BeatTime.format()
  "@300"