19 Sep 2001 18:34:33 UTC
- Distribution: Time-Unix
- Module version: 1.03
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (2712 / 0 / 0)
- KwaliteeBus factor: 0
- 72.73% Coverage
- License: unknown
- Activity24 month
- Download (2.67KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
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 <email@example.com> for the MacOS time code.
Copyright (c) 2000, Nathan Wiger <firstname.lastname@example.org>. 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.