| 1 | package TOML::XS::Timestamp; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | =encoding utf-8 | ||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | TOML::XS::Timestamp - Object representation of a L<TOML|https://toml.io> | ||
| 11 | timestamp | ||
| 12 | |||
| 13 | =head1 SYNOPSIS | ||
| 14 | |||
| 15 | See L<TOML::XS>. | ||
| 16 | |||
| 17 | =head1 DESCRIPTION | ||
| 18 | |||
| 19 | Instances of this class represent a parse of a TOML timestamp. | ||
| 20 | |||
| 21 | This class is not directly instantiable. | ||
| 22 | |||
| 23 | =head1 ACCESSOR METHODS | ||
| 24 | |||
| 25 | Any of the following may be undef, depending on the original TOML. | ||
| 26 | |||
| 27 | =over | ||
| 28 | |||
| 29 | =item * C<year()> | ||
| 30 | |||
| 31 | =item * C<month()> | ||
| 32 | |||
| 33 | =item * C<day()> (alias: C<date()>) | ||
| 34 | |||
| 35 | =item * C<hour()> (alias: C<hours()>) | ||
| 36 | |||
| 37 | =item * C<minute()> (alias: C<minutes()>) | ||
| 38 | |||
| 39 | =item * C<second()> (alias: C<seconds()>) | ||
| 40 | |||
| 41 | =item * C<millisecond()> (alias: C<milliseconds()>) | ||
| 42 | |||
| 43 | =item * C<microsecond()> (alias: C<microseconds()>) | ||
| 44 | |||
| 45 | =item * C<timezone()> (string) | ||
| 46 | |||
| 47 | =back | ||
| 48 | |||
| 49 | =head1 OTHER METHODS | ||
| 50 | |||
| 51 | =head2 $str = I<OBJ>->to_string() | ||
| 52 | |||
| 53 | Returns a string that represents I<OBJ>. | ||
| 54 | |||
| 55 | =cut |