GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  BSON::TIME (3)

.ds Aq ’

NAME

BSON::Time - Date and time data for BSON

CONTENTS

SYNOPSIS



    use BSON;

    my $dt = BSON::Time->new( $epoch );



DESCRIPTION

This module is needed for BSON and it manages BSON’s date element.

METHODS

    new

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);



    value

Returns the stored time in milliseconds since the Epoch. To convert to seconds, divide by 1000.

    epoch

Returns the stored time in seconds since the Epoch.

SEE ALSO

BSON

AUTHOR

minimalist, <minimalist at lavabit.com>

BUGS

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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 BSON::TIME (3) 2011-07-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.