1DateTime::HiRes(3) User Contributed Perl Documentation DateTime::HiRes(3)
2
3
4
6 DateTime::HiRes - Create DateTime objects with sub-second current time
7 resolution
8
10 version 0.04
11
13 use DateTime::HiRes;
14
15 my $dt = DateTime::HiRes->now;
16
18 This module enables you to generate DateTime objects that represent the
19 current time with sub-second resolution.
20
22 This class provides the following methods:
23
24 DateTime::HiRes->now( ... )
25 Similar to "DateTime->now" but uses Time::HiRes::time() instead of
26 Perl's CORE::time() to determine the current time. The returned object
27 will have fractional second information stored as nanoseconds. The sub-
28 second precision of "Time::HiRes" is highly system dependent and will
29 vary from one platform to the next.
30
31 Just like "DateTime->now" it accepts "time_zone" and "locale"
32 parameters.
33
35 Everyone at the DateTime "Asylum".
36
38 DateTime, Time::HiRes
39
41 Bugs may be submitted at
42 <https://github.com/houseabsolute/DateTime-HiRes/issues>.
43
44 I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".
45
47 The source code repository for DateTime-HiRes can be found at
48 <https://github.com/houseabsolute/DateTime-HiRes>.
49
51 • Joshua Hoblitt <jhoblitt@cpan.org>
52
53 • Dave Rolsky <autarch@urth.org>
54
56 Roy Ivy III <rivy.dev@gmail.com>
57
59 This software is copyright (c) 2020 by Joshua Hoblitt.
60
61 This is free software; you can redistribute it and/or modify it under
62 the same terms as the Perl 5 programming language system itself.
63
64 The full text of the license can be found in the LICENSE file included
65 with this distribution.
66
67
68
69perl v5.38.0 2023-07-20 DateTime::HiRes(3)