global::time

Utilities to get the current time and date.

fn now

fn now() -> String
Get the current time.
  • string - the current time.

All of them.

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

fn date

fn date() -> String
Get the current date.
  • string - the current date.

All of them.

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