BSON::Time - Date and time data for BSON
version 0.16
use BSON; my $dt = BSON::Time->new( $epoch );
This module is needed for BSON and it manages BSON's date element.
Object constructor. Optional parameter specifies an epoch date. If no parameters are passed it will use the current time.
time
my $t = BSON::Time->new; # Time now my $d = BSON::Time->new(123456789);
Returns the stored time in milliseconds since the Epoch. To convert to seconds, divide by 1000.
Returns the stored time in seconds since the Epoch.
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.