Calendar v1.0.0 API Reference

Modules

AmbiguousDateTime provides a struct which represents an ambiguous time and date in a certain time zone. These structs will be returned from the DateTime.from_erl/2 function when the provided time is ambiguous.

The Date module provides a struct to represent a simple date: year, month and day.

DateTime provides a struct which represents a certain time and date in a certain time zone.

An Interval consists of a start and an end DateTime.

NaiveDateTime can represents a "naive time". That is a point in time without a specified time zone.

A NaiveDateTime.Interval consists of a start and an end NaiveDateTime.

Format different types of time representations as strings.

The Time module provides a struct to represent a simple time without specifying a date, nor a time zone.