-
Notifications
You must be signed in to change notification settings - Fork 0
emailTimestamp
Corey Avis edited this page Sep 23, 2026
·
2 revisions
Generates an email timestamp from the provided date/time; otherwise, defaults to now.
emailTimestamp(string|integer|null $date = null): string
date (string|integer|null)
: A date/time string or Unix timestamp. Null by default. ^(optional)^
(string)
: Returns the email timestamp for a given date/time, or current time if date is null.
$fx->emailTimestamp() = Weekday, Day Month Year Timecode UTC (current date and time)
$fx->emailTimestamp('July 29, 2015 3:45pm') = Wed, 29 Jul 2015 15:45:00 -0700
$fx->emailTimestamp(1438209901) = Wed, 29 Jul 2015 15:45:01 -0700
- No debug errors.