line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mango::BSON::Timestamp; |
2
|
11
|
|
|
11
|
|
37
|
use Mojo::Base -base; |
|
11
|
|
|
|
|
13
|
|
|
11
|
|
|
|
|
57
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
has [qw(seconds increment)]; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
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 is a container for the BSON timestamp type used by |
23
|
|
|
|
|
|
|
L. |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
L 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 inherits all methods from L. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 SEE ALSO |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
L, L, L. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=cut |