https://github.com/houseabsolute/datetime-hires
Create DateTime objects with sub-second current time resolution
https://github.com/houseabsolute/datetime-hires
Last synced: about 2 months ago
JSON representation
Create DateTime objects with sub-second current time resolution
- Host: GitHub
- URL: https://github.com/houseabsolute/datetime-hires
- Owner: houseabsolute
- License: other
- Created: 2020-07-25T15:17:33.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-26T23:52:52.000Z (almost 5 years ago)
- Last Synced: 2025-02-15T19:23:01.834Z (4 months ago)
- Language: Perl
- Homepage: http://metacpan.org/release/DateTime-HiRes/
- Size: 41 KB
- Stars: 1
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# NAME
DateTime::HiRes - Create DateTime objects with sub-second current time resolution
# VERSION
version 0.04
# SYNOPSIS
use DateTime::HiRes;
my $dt = DateTime::HiRes->now;
# 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.
# CREDITS
Everyone at the DateTime `Asylum`.
# SEE ALSO
[DateTime](https://metacpan.org/pod/DateTime), [Time::HiRes](https://metacpan.org/pod/Time%3A%3AHiRes)
# SUPPORT
Bugs may be submitted at [https://github.com/houseabsolute/DateTime-HiRes/issues](https://github.com/houseabsolute/DateTime-HiRes/issues).
I am also usually active on IRC as 'autarch' on `irc://irc.perl.org`.
# SOURCE
The source code repository for DateTime-HiRes can be found at [https://github.com/houseabsolute/DateTime-HiRes](https://github.com/houseabsolute/DateTime-HiRes).
# AUTHORS
- Joshua Hoblitt
- Dave Rolsky# CONTRIBUTOR
Roy Ivy III
# COPYRIGHT AND LICENSE
This software is copyright (c) 2020 by Joshua Hoblitt.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.The full text of the license can be found in the
`LICENSE` file included with this distribution.