Return zone information as a string about the datetime (or timeval) object.
If no zone information is available, nil
will be returned.
This function does not generate a change.
datetime.zone()
None
Returns zone information or nil
if no zone information is available.
This code uses
zone()
as an example:
[
datetime().zone(),
datetime().to('Europe/Amsterdam').zone(),
datetime().to('+00').zone(),
]
Return value in JSON format
[
"UTC",
"Europe/Amsterdam",
null
]