View Source Cosmox.Helpers.DateHelpers (Cosmox v0.1.0)

Offers a series of helper functions to handle the data.

Link to this section Summary

Functions

Gives a representation of a NaiveDateTime date in RFC 7231 Date/Time format.

Returns the current date as a RFC7231 formatted string.

Link to this section Functions

Link to this function

convert_naivedatetime_to_rfc_7231(date)

View Source
@spec convert_naivedatetime_to_rfc_7231(date :: NaiveDateTime.t()) :: binary()

Gives a representation of a NaiveDateTime date in RFC 7231 Date/Time format.

@spec now_rfc_7231() :: binary()

Returns the current date as a RFC7231 formatted string.