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(
Integer year,
Integer month,
Integer day,
Integer hour,
Integer min,
Integer sec)
Parameters
- Integer year
- Year value.
- Integer month
- Month value.
- Integer day
- Day value.
- Integer hour (optional)
- Hour value.
- Integer min (optional)
- Minute value.
- Integer sec (optional)
- Second value.
Examples
$date = DateTime(2022, 10, 5, 22, 33)
$date = DateTime(2022, 10, 5)
|