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  -  GU_DATETIME_DATE (3)

NAME

gu::datetime::Date - Date/time representation.

CONTENTS

Synopsis

SYNOPSIS

#include <gu_datetime.hpp>

    Public Member Functions

    long long get_utc () const    
bool operator== (const Date cmp) const    
bool operator< (const Date cmp) const    
Date operator+ (const Period &add) const
Add period to Date.     Date operator- (const Period &dec) const
Decrement period from Date.     Period operator- (const Date &dec) const    
Date (const long long utc_=0)    
void _timespec (timespec &ts) const

    Static Public Member Functions

    static Date now ()
Get system time.     static Date calendar ()
Get time from system-wide realtime clock.     static Date monotonic ()
Get time from monotonic clock.     static Date max ()
Get maximum representable timestamp.     static Date zero ()
Get zero time.

Detailed Description

Date/time representation.

Todo

Parsing date from string is not implemented yet, only possible to get current system time or maximum time.

Member Function Documentation

void gu::datetime::Date::_timespec (timespec & ts) const [inline]

convert to timespec - for internal use

long long gu::datetime::Date::get_utc () const [inline]

Return 64-bit timestamp representing system time in nanosecond resolution.

static Date gu::datetime::Date::now () [inline], [static]

Get system time.

Note:

This call should be deprecated in favor of calendar() and monotonic().

Author

Generated automatically by Doxygen for GCS from the source code.

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


Version 0.2.3 GU::DATETIME::DATE (3) Sun Apr 3 2016

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