freebsd-ports/devel/p5-Time-timegm/pkg-descr
Vanilla I. Shu 4383edb954 Add p5-Time-timegm 0.01, efficiently compute time from local and GMT
time.

PR:		198308
Submitted by:	Geoffroy Desvernay <dgeo@centrale-marseille.fr>
2015-03-10 06:08:19 +00:00

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