thaterikperson / elm-strftime / Strftime

An (incomplete) implementation of the strftime format based on rules from http://strftime.org.

format : String -> Time.Zone -> Time.Posix -> String

Format a time into a string of your choice. Follow the rules at http://strftime.org.

Examples

Strftime.format "%d %B %y" Time.utc (Time.millisToPosix 1499000000000) == "02 July 17"