pop3mail v1.3.1 Pop3mail.DateConverter View Source

Date conversions and date utilities

Link to this section Summary

Functions

Convert date from email header to a standard date format: YYYYMMDD_HHMMSS

add zero’s at left side of the number

Link to this section Functions

Link to this function convert_date(date_str) View Source
convert_date(String.t()) :: String.t()

Convert date from email header to a standard date format: YYYYMMDD_HHMMSS

datestr - must be conform RFC 2822 date format

Link to this function zero_pad(number, len \\ 2) View Source
zero_pad(integer(), integer()) :: String.t()

add zero’s at left side of the number