db::DateTime Class Reference
[Data Types]

#include <ittia/dbxx/dbxx_time.h>

List of all members.


Detailed Description

Time data type.

Public Member Functions

 DateTime (int year, int month, int day, int hour, int minute, int second, int microsecond=0)
 DateTime (int year, int month, int day)
 DateTime (const DateTime &)
DateTimeoperator= (const DateTime &)
bool is_valid () const
bool operator< (const DateTime &t) const
bool operator<= (const DateTime &t) const
bool operator== (const DateTime &t) const
bool operator!= (const DateTime &t) const
bool operator>= (const DateTime &t) const
bool operator> (const DateTime &t) const
int compare (const DateTime &t) const
setters
int set (int year, int month, int day, int hour, int minute, int second, int microsecond=0)
int set_date (int year, int month, int day)
int set_time (int hour, int minute, int second)
int set_year (int year)
int set_month (int month)
int set_day (int day)
int set_hour (int hour)
int set_minute (int minute)
int set_second (int second)
int set_microsecond (int microsecond)
getters
int get (int &year, int &month, int &day, int &hour, int &minute, int &second) const
int get_date (int &year, int &month, int &day) const
int get_time (int &hour, int &minute, int &second) const
int get_year () const
int get_month () const
int get_day () const
int get_hour () const
int get_minute () const
int get_second () const
int get_microsecond () const

Copyright © 2005-2008 ITTIA®. All rights reserved.