logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

DateTime::HiRes - Create DateTime objects with sub-second current time resolution

Authors

       •   Joshua Hoblitt <jhoblitt@cpan.org>

       •   Dave Rolsky <autarch@urth.org>

Contributor

       Roy Ivy III <rivy.dev@gmail.com>

Credits

       Everyone at the DateTime "Asylum".

Description

       This module enables you to generate DateTime objects that represent the current time with sub-second
       resolution.

Methods

       This class provides the following methods:

   DateTime::HiRes->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.

       Just like "DateTime->now" it accepts "time_zone" and "locale" parameters.

Name

       DateTime::HiRes - Create DateTime objects with sub-second current time resolution

See Also

       DateTime, Time::HiRes

Source

       The source code repository for DateTime-HiRes can be found at
       <https://github.com/houseabsolute/DateTime-HiRes>.

Support

       Bugs may be submitted at <https://github.com/houseabsolute/DateTime-HiRes/issues>.

       I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".

Synopsis

           use DateTime::HiRes;

           my $dt = DateTime::HiRes->now;

Version

       version 0.04

See Also