1DateTime::Format::EpochU:s:eTrAIC6o4n(t3r)ibuted Perl DoDcautmeeTnitmaet:i:oFnormat::Epoch::TAI64(3)
2
3
4

NAME

6       DateTime::Format::Epoch::TAI64 - Convert DateTimes to/from TAI64 values
7

SYNOPSIS

9         use DateTime::Format::Epoch::TAI64;
10
11         my $dt = DateTime::Format::Epoch::TAI64
12                       ->parse_datetime( '4611686019483526367' );
13          # 2003-06-20T19:49:59
14
15         DateTime::Format::Epoch::TAI64->format_datetime($dt);
16          # 4611686019483526367
17
18         my $formatter = DateTime::Format::Epoch::TAI64->new();
19
20         $dt = $formatter->parse_datetime( '4611686019483526367' );
21          # 2003-06-20T19:49:59
22
23         $formatter->format_datetime($dt);
24          # 4611686019483526367
25
26         my $str_frmt = DateTime::Format::Epoch::TAI64->new(
27                                                       format => 'string' );
28
29         $dt = $str_frmt->parse_datetime( "\x40\0\0\0\x3e\xf3\x69\x6a" );
30          # 2003-06-20T19:49:59
31
32         $str_frmt->format_datetime($dt);
33          # "\x40\0\0\0\x3e\xf3\x69\x6a"
34

DESCRIPTION

36       This module can convert a DateTime object (or any object that can be
37       converted to a DateTime object) to a TAI64 value. The TAI64 timescale
38       covers the entire expected lifespan of the universe (at least, if you
39       expect the universe to be closed).
40

METHODS

42       Most of the methods are the same as those in DateTime::Format::Epoch.
43       The only difference is the constructor.
44
45       ยท   new( [format => 'string'] )
46
47           Constructor of the formatter/parser object. If the optional format
48           parameter is set to 'string', TAI64 values will be expected to be 8
49           byte strings.
50

SUPPORT

52       Support for this module is provided via the datetime@perl.org email
53       list. See http://lists.perl.org/ for more details.
54

AUTHOR

56       Eugene van der Pijll <pijll@gmx.net>
57
59       Copyright (c) 2003, 2004 Eugene van der Pijll.  All rights reserved.
60       This program is free software; you can redistribute it and/or modify it
61       under the same terms as Perl itself.
62

SEE ALSO

64       DateTime
65
66       datetime@perl.org mailing list
67
68       http://cr.yp.to/time.html
69
70
71
72perl v5.30.1                      2020-01-29 DateTime::Format::Epoch::TAI64(3)
Impressum