Skip to content

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

Notifications You must be signed in to change notification settings

ZuraGuerra/beat_time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.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"

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages