commore  1.0.6-SNAPSHOT
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Time.h File Reference
#include <time.h>
#include "Commore.h"
#include "AString.h"

Go to the source code of this file.

Classes

class  commore::TimePeriod
 
class  commore::TimeDate
 

Namespaces

 commore
 

Typedefs

typedef unsigned short commore::week_t
 
typedef unsigned short commore::weekday_t
 
typedef unsigned short commore::month_t
 
typedef unsigned short commore::day_t
 
typedef short commore::year_t
 
typedef unsigned short commore::hour_t
 
typedef unsigned short commore::minute_t
 
typedef unsigned short commore::second_t
 
typedef unsigned long commore::usecond_t
 

Enumerations

enum  commore::which_one {
  commore::next_to_last = -2, commore::last, commore::none, commore::first,
  commore::second, commore::third, commore::fourth, commore::fifth
}
 

Functions

CMREXD const char * commore::which_one_name (which_one which)
 
bool CMREXD commore::sleep (TimePeriod timeout)
 
TimeDate commore::operator+ (const TimePeriod &period, const TimeDate &time_and_date)
 
CMREXD commore::OBStreamoperator<< (commore::OBStream &stream, const commore::TimeDate &object)
 
CMREXD commore::OBStreamoperator<< (commore::OBStream &stream, const commore::TimePeriod &object)
 

Variables

const long commore::microseconds_in_second = 1000000L
 
const long commore::milliseconds_in_second = 1000L
 
const long commore::max_microsecond = 999999
 
const long commore::min_microsecond = 0
 
const long commore::max_millisecond = 999
 
const long commore::min_millisecond = 0
 
const int commore::seconds_in_minute = 60
 
const int commore::minutes_in_hour = 60
 
const int commore::hours_in_day = 24
 
const int commore::seconds_in_hour = 3600
 
const long commore::seconds_in_day = 86400
 
const int commore::days_in_week = 7
 
const long commore::seconds_in_week = 604800
 
const int commore::days_in_year = 365
 
const int commore::days_in_leap_year = 366
 
const int commore::months_in_year = 12
 
const long commore::min_julian_day = 38L
 
const long commore::max_julian_day = 13688960L
 

Function Documentation

CMREXD commore::OBStream& operator<< ( commore::OBStream stream,
const commore::TimeDate object 
)
CMREXD commore::OBStream& operator<< ( commore::OBStream stream,
const commore::TimePeriod object 
)