File: README.md

package info (click to toggle)
libdatetime-hires-perl 0.04-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 268 kB
  • sloc: perl: 191; makefile: 2
file content (69 lines) | stat: -rw-r--r-- 1,805 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# 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 <jhoblitt@cpan.org>
- Dave Rolsky <autarch@urth.org>

# CONTRIBUTOR

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

# 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.