7 #ifndef litesql_datetime_hpp 8 #define litesql_datetime_hpp 21 int dayOfWeek()
const;
22 int dayOfYear()
const;
28 time_t timeStamp()
const;
44 Date(
int day,
int month,
int year);
46 int dayOfWeek()
const;
49 time_t timeStamp()
const;
53 Date& setMonth(
int m);
55 Date& setTimeStamp(time_t t);
56 string asString(
string format=
"%u")
const;
64 Time(
int hour,
int min,
int sec);
69 string asString(
string format=
"%u")
const;
74 Time& setSecs(
int secs);
87 time_t timeStamp()
const;
89 string asString(
string format=
"%u")
const;
97 Date& setTimeStamp(time_t t);
100 Date convert<const string&, Date>(
const string& value);
102 Time convert<const string&, Time>(
const string& value);
104 DateTime convert<const string&, DateTime>(
const string& value);
107 std::string convert<const Date&, std::string>(
const Date& value);
109 std::string convert<const Time&, std::string>(
const Time& value);
111 std::string convert<const DateTime&, std::string>(
const DateTime& value);
113 std::ostream& operator << (std::ostream& os,
const Date& d);
114 std::ostream& operator << (std::ostream& os,
const Time& d);
115 std::ostream& operator << (std::ostream& os,
const DateTime& d);
Definition: backend.hpp:14
holds date and time of day
Definition: datetime.hpp:77
contains FieldType- and Field-classes
holds time of day
Definition: datetime.hpp:59
Definition: datetime.hpp:16
holds date
Definition: datetime.hpp:39