Calendar v0.9.0

Modules summary

Calendar

Calendar

(formerly known as Kalends)

Calendar.AmbiguousDateTime

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

Calendar.Date

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

Calendar.DateTime

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

Calendar.DateTime.Format
Calendar.DateTime.Parse
Calendar.DateTime.TzPeriod

DateTime.TzPeriod is for getting information about timezone periods. A timezone period is an invention for Calendar, which is a period where the offsets are the same for a given time zone. For instance during summer time in London where Daylight Saving Time is in effect. The period would be from the beginning of summer time until the fall where DST is no longer in effect

Calendar.NaiveDateTime

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

Calendar.NaiveDateTime.Format
Calendar.NaiveDateTime.Parse
Calendar.Strftime

Format different types of time representations as strings

Calendar.Time

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

Calendar.TimeZoneData

Protocols summary

Calendar.ContainsDate
Calendar.ContainsNaiveDateTime
Calendar.ContainsTime