Time::Unix - Force time() to return seconds since UNIX epoch
use Time::Unix; # time() now returns UNIX epoch seconds
This module does one thing: It imports a new version of time() that returns seconds since the UNIX epoch on ALL platforms. It is intended mainly as a proof-of-concept for the below Perl 6 RFC.
In addition to importing a time() function, it also imports a systime() function which gives you direct access to the system's native epoch (i.e., what time() would return if you hadn't used this module).
This doesn't do anything useful on UNIX platforms, so don't do that.
See http://dev.perl.org/rfc/99.html for a complete description.
Thanks to Chris Nandor <firstname.lastname@example.org> for the MacOS time code.
Copyright (c) 2000, Nathan Wiger <email@example.com>. All Rights Reserved.
This module is free software; you may copy this under the terms of the GNU General Public License, or the Artistic License, copies of which should have accompanied your Perl kit.