global::time

Utilities to get the current time and date.

fn date

fn date() -> String
details

Get the current date.

Return

  • string - the current date.

Effective smtp stage

All of them.

Examples

#{
    preq: [
       action "append info header" || {
            msg::append_header("X-VSMTP", `email received by ${utils::hostname()} the ${time::date()}.`);
       }
    ]
}

fn now

fn now() -> String
details

Get the current time.

Return

  • string - the current time.

Effective smtp stage

All of them.

Examples

#{
    preq: [
       action "append info header" || {
            msg::append_header("X-VSMTP", `email received by ${utils::hostname()} the ${time::date()} at ${time::now()}.`);
       }
    ]
}