View Source z_dateformat (zotonic_stdlib v1.17.0)

Link to this section Summary

Link to this section Types

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

Link to this section 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().