View Source Magical.Parser.DateParser (Magical v1.0.1)
Responsible for parsing datestrings in predefined formats with parse/1
.
Summary
Functions
Responsible for parsing datestrings in predefined formats into %DateTime{} structs. Valid formats are defined by the "Internet Calendaring and Scheduling Core Object Specification" (RFC 2445).
Functions
@spec parse(String.t(), map()) :: DateTime.t() | NaiveDateTime.t() | Date.t() | nil
Responsible for parsing datestrings in predefined formats into %DateTime{} structs. Valid formats are defined by the "Internet Calendaring and Scheduling Core Object Specification" (RFC 2445).
- Full text: http://www.ietf.org/rfc/rfc2445.txt
- DateTime spec: http://www.kanzaki.com/docs/ical/dateTime.html
- Date spec: http://www.kanzaki.com/docs/ical/date.html