mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 20:06:29 -04:00
10 lines
529 B
Text
10 lines
529 B
Text
The POSIX standard provides three functions for converting between integer
|
|
epoch values and 6-component "broken-down" time representations.
|
|
localtime and gmtime convert an epoch into the 6 components of seconds,
|
|
minutes, hours, day of month, month and year, in either local timezone or UTC.
|
|
The mktime function converts a local broken-down time into an epoch value.
|
|
However, POSIX does not provide a UTC version of this.
|
|
|
|
This module provides a function timegm which has this ability.
|
|
|
|
WWW: https://metacpan.org/pod/Time::timegm
|