datetime() = {calendar:date(), {hour(), minute(), second() | float()}}
datetime_plist() = [{atom(), integer()}]
day() = 1..31
hour() = 0..23
minute() = 0..59
month() = 1..12
second() = 0..59
timestamp() = {MegaSecs::integer(), Secs::integer(), MicroSecs::integer() | float()}
year() = non_neg_integer()
| add_days/2 | Add some days to the supplied datetime(). |
| add_months/2 | Add some months to the supplied datetime(). |
| add_time/4 | Add some time to the supplied calendar:datetime(). |
| add_years/2 | Add some years to the supplied datetime(). |
| apply_duration/2 | Return new datetime after apply duration. |
| format/1 | Convert a util:timestamp() or a calendar-style {date(), time()}
tuple to an ISO 8601 formatted string. |
| parse/1 | Convert an ISO 8601 formatted string to a {date(), time()} |
| parse_duration/1 | Convert an ISO 8601 Durations string to a. |
| parse_exact/1 | Convert an ISO 8601 formatted string to a {date(), time()}
tuple with seconds precision to 3 decimal places. |
| subtract_time/4 | Subtract some time from the supplied calendar:datetime(). |
add_days(Timestamp::datetime() | timestamp(), D::integer()) -> datetime()
Add some days to the supplied datetime().
add_months(Timestamp::datetime() | timestamp(), M::integer()) -> datetime()
Add some months to the supplied datetime().
add_time(Timestamp::calendar:datetime(), H::integer(), M::integer(), S::integer()) -> calendar:datetime()
Add some time to the supplied calendar:datetime().
add_years(Timestamp::datetime() | timestamp(), Y::integer()) -> datetime()
Add some years to the supplied datetime().
apply_duration(Datetime::datetime(), Duration::string()) -> datetime()
Return new datetime after apply duration.
format(Timestamp::datetime() | timestamp()) -> binary()
Convert a util:timestamp() or a calendar-style {date(), time()}
tuple to an ISO 8601 formatted string. Note that this function always
returns a string with no offset (i.e., ending in "Z").
parse(Bin::iodata()) -> calendar:datetime()
Convert an ISO 8601 formatted string to a {date(), time()}
parse_duration(Bin::string()) -> datetime_plist()
Convert an ISO 8601 Durations string to a
parse_exact(Bin::iodata()) -> calendar:datetime()
Convert an ISO 8601 formatted string to a {date(), time()}
tuple with seconds precision to 3 decimal places
subtract_time(Datetime::calendar:datetime(), H::integer(), M::integer(), S::integer()) -> calendar:datetime()
Subtract some time from the supplied calendar:datetime().
Generated by EDoc