| 1 | package Mango::BSON::Timestamp; | ||
| 2 | 11 | ▶ | use Mojo::Base -base; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 11 | has [qw(seconds increment)]; | |
| 5 | |||
| 6 | 11 | 1; | |
| 7 | |||
| 8 | =encoding utf8 | ||
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | Mango::BSON::Timestamp - Timestamp type | ||
| 13 | |||
| 14 | =head1 SYNOPSIS | ||
| 15 | |||
| 16 | use Mango::BSON::Timestamp; | ||
| 17 | |||
| 18 | my $ts = Mango::BSON::Timestamp->new(seconds => 23, increment => 5); | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | L<Mango::BSON::Timestamp> is a container for the BSON timestamp type used by | ||
| 23 | L<Mango::BSON>. | ||
| 24 | |||
| 25 | =head1 ATTRIBUTES | ||
| 26 | |||
| 27 | L<Mango::BSON::Timestamp> implements the following attributes. | ||
| 28 | |||
| 29 | =head2 seconds | ||
| 30 | |||
| 31 | my $seconds = $ts->seconds; | ||
| 32 | $ts = $ts->seconds(23); | ||
| 33 | |||
| 34 | Seconds. | ||
| 35 | |||
| 36 | =head2 increment | ||
| 37 | |||
| 38 | my $inc = $ts->increment; | ||
| 39 | $tz = $ts->increment(5); | ||
| 40 | |||
| 41 | Increment. | ||
| 42 | |||
| 43 | =head1 METHODS | ||
| 44 | |||
| 45 | L<Mango::BSON::Timestamp> inherits all methods from L<Mojo::Base>. | ||
| 46 | |||
| 47 | =head1 SEE ALSO | ||
| 48 | |||
| 49 | L<Mango>, L<Mojolicious::Guides>, L<http://mojolicio.us>. | ||
| 50 | |||
| 51 | =cut | ||