View Source z_dateformat (zotonic_stdlib v1.20.1)

Summary

Types

-type date() :: {integer(), 1..12, 1..31}.
-type datetime() :: calendar:datetime() | {date(), calendar:time()}.
-type tz() :: string().

Functions

-spec format(string()) -> binary() | undefined.
Link to this function

format(FormatString, Options)

View Source
-spec format(string(), list()) -> binary() | undefined.
Link to this function

format(Date, FormatString, Options)

View Source
-spec format(datetime() | calendar:date(), string(), list()) -> binary() | undefined.
Link to this function

tz_name(Date, Disambiguate, ToTZ)

View Source
-spec tz_name(calendar:datetime(), prefer_standard | prefer_daylight | both, tz()) -> string().