File: Timestamp.pm

package info (click to toggle)
libmango-perl 1.30-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, forky, sid, trixie
  • size: 448 kB
  • sloc: perl: 1,513; makefile: 2
file content (51 lines) | stat: -rw-r--r-- 822 bytes parent folder | download | duplicates (4)
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
package Mango::BSON::Timestamp;
use Mojo::Base -base;

has [qw(seconds increment)];

1;

=encoding utf8

=head1 NAME

Mango::BSON::Timestamp - Timestamp type

=head1 SYNOPSIS

  use Mango::BSON::Timestamp;

  my $ts = Mango::BSON::Timestamp->new(seconds => 23, increment => 5);

=head1 DESCRIPTION

L<Mango::BSON::Timestamp> is a container for the BSON timestamp type used by
L<Mango::BSON>.

=head1 ATTRIBUTES

L<Mango::BSON::Timestamp> implements the following attributes.

=head2 seconds

  my $seconds = $ts->seconds;
  $ts         = $ts->seconds(23);

Seconds.

=head2 increment

  my $inc = $ts->increment;
  $tz     = $ts->increment(5);

Increment.

=head1 METHODS

L<Mango::BSON::Timestamp> inherits all methods from L<Mojo::Base>.

=head1 SEE ALSO

L<Mango>, L<Mojolicious::Guides>, L<http://mojolicio.us>.

=cut