Manual Reference Pages - BSON::TIME (3)
BSON::Time - Date and time data for BSON
my $dt = BSON::Time->new( $epoch );
This module is needed for BSON and it manages BSONs date element.
Object constructor. Optional parameter specifies an epoch date.
If no parameters are passed it will use the current 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.
minimalist, <minimalist at lavabit.com>
Bug reports and patches are welcome. Reports which include a failing
Test::More style test are helpful and will receive priority.
LICENSE AND COPYRIGHT
Copyright 2011 minimalist.
This program is free software; you can redistribute it and/or modify
it under the terms as perl itself.
|perl v5.20.3 ||BSON::TIME (3) ||2011-07-22 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.