DateTime::HiRes - Create DateTime objects with sub-second current time resolution
use DateTime::HiRes; my $dt = DateTime::HiRes->now;
This module enables you to generate DateTime objects that represent the current time with sub-second resolution.
now( ... )
Similar to DateTime->now but uses Time::HiRes::time() instead of Perl's CORE::time() to determine the current time. The returned object will have fractional second information stored as nanoseconds. The sub-second precision of Time::HiRes is highly system dependent and will vary from one platform to the next.
DateTime->now
Time::HiRes::time()
CORE::time()
Time::HiRes
Just like DateTime->now it accepts "time_zone" and "locale" parameters.
Everyone at the DateTime Asylum.
Asylum
Support for this module is provided via the datetime@perl.org email list. See http://lists.perl.org/ for more details.
Joshua Hoblitt <jhoblitt@cpan.org>
Copyright (c) 2003 Joshua Hoblitt. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
datetime@perl.org mailing list
http://datetime.perl.org/
DateTime, Time::HiRes
To install DateTime::HiRes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTime::HiRes
CPAN shell
perl -MCPAN -e shell install DateTime::HiRes
For more information on module installation, please visit the detailed CPAN module installation guide.