Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 333 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 333 Bytes

Strftime

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

Usage

import Strftime exposing (format)


format "%d %b %y" (Date.fromTime 1499000000000) == "02 Jul 17"

format "%B %d %Y, %-I:%M" (Date.fromTime 1490000000000) == "March 20 2017, 4:53"