Format a Time.Posix value, using the format for a specified FormatType, Locale, and Time.Zone
Time.Posix
FormatType
Locale
Time.Zone
import Time import Cldr.Locale exposing (en) format short en Time.utc (Time.millisToPosix 959829796738) --> "6/1/00, 3:23 AM"
The different combinations of date and time that can be formatted.
Use Short for both date and time
Short
Use Medium for both date and time
Medium
Use Long for both date and time
Long
Use Full for both date and time
Full
Format a
Time.Posix
value, using the format for a specifiedFormatType
,Locale
, andTime.Zone
import Time import Cldr.Locale exposing (en) format short en Time.utc (Time.millisToPosix 959829796738) --> "6/1/00, 3:23 AM"