MongoDB Inc > BSON > BSON::Timestamp

Download:
BSON-0.16.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.16   Source   Latest Release: BSON-v0.999.3-TRIAL

NAME ^

BSON::Timestamp - Timestamp data for BSON

VERSION ^

version 0.16

SYNOPSIS ^

    use BSON;

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

DESCRIPTION ^

This module is needed for BSON and it manages BSON's timestamp element. Timestamp is an internal MongoDB type used in replication and sharding. The first four bytes are increment and the second four bytes are a timestamp. A timestamp value of 0 has special semantics.

METHODS ^

new

Object constructor takes seconds and increment parameters.

seconds

Returns the value of seconds

increment

Returns the value of increment

SEE ALSO ^

BSON

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2015 by minimalist and MongoDB, Inc..

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004
syntax highlighting: