bahn_ex v1.0.0 BahnEx.DateHelpers View Source

little helpers for working with dates in the DB Fahrplan API.

Link to this section Summary

Functions

Converts the string into a ISO 8601 DateTime

Link to this section Functions

Link to this function iso_8601_date_from_string(string) View Source
iso_8601_date_from_string(String.t) :: Calendar.datetime

Converts the string into a ISO 8601 DateTime.

Returns the converted string or if it cannot convert the string the current date and time as DateTime.