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

NAME

gu::datetime::Period - Class representing time periods instead of system clock time.

CONTENTS

Synopsis

SYNOPSIS

#include <gu_datetime.hpp>

    Public Member Functions

    Period (const std::string &str=’’)
Constructor.     Period (const long long nsecs_)    
bool operator== (const Period &cmp) const    
bool operator< (const Period &cmp) const    
bool operator>= (const Period &cmp) const    
Period operator+ (const long long add) const    
Period operator- (const long long dec) const    
Period operator* (const long long mul) const    
Period operator/ (const long long div) const    
long long get_nsecs () const

    Static Public Member Functions

    static Period min ()    
static Period max ()

    Friends

    class Date    
std::istream & operator>> (std::istream &, Period &)

Detailed Description

Class representing time periods instead of system clock time.

Constructor & Destructor Documentation

gu::datetime::Period::Period (const std::string & str = ’’) [inline]

Constructor. Duration format is PnYnMnDTnHnMnS where Y is year, M is month, D is day, T is the time designator separating date and time parts, H denotes hours, M (after T) is minutes and S seconds.

All other n:s are expected to be integers except the one before S which can be decimal to represent fractions of second.

Parameters:

str Time period represented in ISO8601 duration format.

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::PERIOD (3) Sun Apr 3 2016

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