commore
1.0.6-SNAPSHOT
|
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <time.h>
#include <math.h>
#include "commore/IOBStream.h"
#include "commore/CommBuffer.h"
#include "commore/Error.h"
#include "ListImpl.h"
#include <sys/time.h>
Enumerations | |
enum | { invalid_month = 0, january, february, march, april, may, june, july, august, september, october, november, december } |
enum | { min_month = january, max_month = december, min_day = 1, max_day = 31, min_year = -4713, max_year = 32766 } |
Functions | |
CMR_FILE_DECLARE () | |
long | calc_julian_day (year_t year, month_t month, day_t day) |
bool | read (IBStream &str, int &num) |
bool | from_string (TimeDate &value, const char *text, bool utc) |
TimePeriod | operator* (long value, const TimePeriod &time) |
CMREXD commore::OBStream & | operator<< (commore::OBStream &stream, const commore::TimeDate &object) |
CMREXD commore::OBStream & | operator<< (commore::OBStream &stream, const commore::TimePeriod &object) |
bool | is_year (year_t year) |
bool | is_month (month_t month) |
bool | is_leap_year (year_t year) |
day_t | nb_days_in_month (month_t month, year_t year) |
void | calc_calendar_date (long julianDay, int *year_p, int *month_p, int *day_p) |
AString | to_string (long number, int width=0, char pad= '0') |
AString | formatted (const AString &format, int hour, int minute, int second, int microsec, int month, int day, int year) |
AString | formatted (const AChar *format, const TimeDate &time_and_date) |
CMR_LIST_IMPL (TimePeriod) | |
CMR_LIST_IMPL (TimeDate) | |
anonymous enum |
void calc_calendar_date | ( | long | julianDay, |
int * | year_p, | ||
int * | month_p, | ||
int * | day_p | ||
) |
CMR_FILE_DECLARE | ( | ) |
CMR_LIST_IMPL | ( | TimePeriod | ) |
CMR_LIST_IMPL | ( | TimeDate | ) |
AString formatted | ( | const AString & | format, |
int | hour, | ||
int | minute, | ||
int | second, | ||
int | microsec, | ||
int | month, | ||
int | day, | ||
int | year | ||
) |
bool from_string | ( | TimeDate & | value, |
const char * | text, | ||
bool | utc | ||
) |
bool is_leap_year | ( | year_t | year | ) |
bool is_month | ( | month_t | month | ) |
bool is_year | ( | year_t | year | ) |
TimePeriod operator* | ( | long | value, |
const TimePeriod & | time | ||
) |
CMREXD commore::OBStream& operator<< | ( | commore::OBStream & | stream, |
const commore::TimeDate & | object | ||
) |
CMREXD commore::OBStream& operator<< | ( | commore::OBStream & | stream, |
const commore::TimePeriod & | object | ||
) |
bool read | ( | IBStream & | str, |
int & | num | ||
) |
AString to_string | ( | long | number, |
int | width = 0 , |
||
char | pad = '0' |
||
) |