DOKK / manpages / debian 10 / libmango-perl / Mango::BSON::Timestamp.3pm.en
Mango::BSON::Timestamp(3pm) User Contributed Perl Documentation Mango::BSON::Timestamp(3pm)

Mango::BSON::Timestamp - Timestamp type

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

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

Mango::BSON::Timestamp implements the following attributes.

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

Seconds.

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

Increment.

Mango::BSON::Timestamp inherits all methods from Mojo::Base.

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

2018-04-14 perl v5.26.1