BSON::Timestamp - Timestamp data for BSON
version 0.16
use BSON; my $ts = BSON::Timestamp->new( $seconds, $increment );
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.
Timestamp
Object constructor takes seconds and increment parameters.
Returns the value of seconds
seconds
Returns the value of increment
increment
BSON
minimalist <minimalist@lavabit.com>
David Golden <david@mongodb.com>
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
To install BSON, copy and paste the appropriate command in to your terminal.
cpanm
cpanm BSON
CPAN shell
perl -MCPAN -e shell install BSON
For more information on module installation, please visit the detailed CPAN module installation guide.