Onetastic Macro Documentation >
>
>
DateTime DateTime
Returns a date/time value from given year, month, day, hour, minute, and second values. Hour, minute, and second values are optional. The returned date/time value is in the local timezone of the current computer.
Syntax
DateTime DateTime(
Numeric year,
Numeric month,
Numeric day,
Numeric hour,
Numeric min,
Numeric sec)
Parameters
- Numeric year
- Year value.
- Numeric month
- Month value.
- Numeric day
- Day value.
- Numeric hour (optional)
- Hour value.
- Numeric min (optional)
- Minute value.
- Numeric sec (optional)
- Second value.
Examples
Copied!
$date = DateTime(2022, 10, 5, 22, 33)
$date = DateTime(2022, 10, 5)
|