Skip to content

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

Notifications You must be signed in to change notification settings

thaterikperson/elm-strftime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages