Skip to content

__localtime__

builtin · libnexusinterp/corefcn/time-proprietary.cc

: tm_struct = __localtime__ (seconds)

Split the epoch time seconds into its calendar components expressed in the system’s local time zone.

The returned structure carries the same fields as the one from gmtime, with gmtoff and zone describing the local zone and isdst flagging whether daylight-saving time applies.