lib/spl_datetime.py)
Clock and calendar helpers registered under the
datetime namespace. Load with
use spl_datetime;
(reqFileExtension = False).
use spl_datetime; print.string(datetime.today()); print.string(datetime.nowIsoUtc()); print.number(datetime.unixTimestamp());
datetime.nowIsoUtc() — current UTC time as ISO-8601 (no microseconds).datetime.nowIsoLocal() — current local time as ISO-8601.datetime.today() — local date YYYY-MM-DD.datetime.timeOfDay() — local time HH:MM:SS.datetime.weekdayIndex() — Monday = 0 … Sunday = 6.datetime.weekdayName() — English weekday name.datetime.month() / day() / year() — calendar parts (local).datetime.unixTimestamp() — float seconds since Unix epoch.
Implementation: someProgrammingLanguage/lib/spl_datetime.py