Closed skaji closed 3 years ago
Good point. A PR would be welcome.
Nice!
... I noticed that just changing SYNOPSIS may conflict with the following sentence:
This module provides functions that are the inverse of built-in perl functions localtime() and gmtime().
use Time::Local qw(timelocal timegm timelocal_modern timegm_modern);
my $time = time;
# These are true
$time == timelocal localtime $time;
$time == timegm gmtime $time;
# These are false
$time == timelocal_modern localtime $time;
$time == timegm_modern gmtime $time;
Yeah, I wonder if it's better to rethink these subs (or provide yet another version that is truly reversable). Bleah, it's a bit of a mess.
I prefer that Time-Local provides functions that are truly reversible. On the other hand, I also agree with you that it is a mess :/
The new *_posix
functions are now the ones shown in the SYNOPSIS.
If you strongly encourage us to use timelocal_modern/timegm_modern instead of timelocal/timegm, then why don't you use timelocal_modern/timegm_modern in SYNOPSIS too?