Not long ago, I noticed that an important time-related
function was missing from the Perl built-in function set.
The manual says (for example):
Returns the number of non-leap seconds since whatever time the system considers to be the epochbut it's hard to write reliable applications if you don't know what the system considers to be the epoch! It is a aprticularly large problem for applications that must be portable between platforms---you might port the program to a system with a different idea of the epoch, and then the program's interpretation of time values would be incorrect.
Anyway, I resolved to fix this, and recently submitted a patch for Perl 5.7.0. It adds a new epochtime function that returns the time at which the epoch occurs. Rather than post the entire patch here, I'll just provide a link.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: New time-related function for Perl
by jorg (Friar) on Apr 02, 2001 at 00:37 UTC | |
Re: New time-related function for Perl
by Anonymous Monk on Apr 02, 2001 at 12:36 UTC | |
by tye (Sage) on Apr 02, 2001 at 21:09 UTC | |
by chipmunk (Parson) on Apr 02, 2001 at 21:46 UTC | |
by Dominus (Parson) on Apr 04, 2001 at 23:20 UTC |
Back to
Meditations