7#ifndef litesql_datetime_hpp
8#define litesql_datetime_hpp
19 TimeStruct(time_t t=0);
21 int dayOfWeek()
const;
22 int dayOfYear()
const;
28 time_t timeStamp()
const;
29 TimeStruct& setDay(
int day);
30 TimeStruct& setMonth(
int month);
31 TimeStruct& setYear(
int year);
32 TimeStruct& setHour(
int hour);
33 TimeStruct& setMin(
int min);
34 TimeStruct& setSec(
int sec);
35 TimeStruct& setTimeStamp(time_t t);
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;
91 DateTime& setDay(
int d);
92 DateTime& setMonth(
int m);
93 DateTime& setYear(
int y);
94 DateTime& setHour(
int d);
95 DateTime& setMin(
int m);
96 DateTime& setSec(
int y);
97 Date& setTimeStamp(time_t t);
113std::ostream& operator << (std::ostream& os,
const Date& d);
114std::ostream& operator << (std::ostream& os,
const Time& d);
115std::ostream& operator << (std::ostream& os,
const DateTime& d);
holds date and time of day
Definition datetime.hpp:77
holds date
Definition datetime.hpp:39
Date(time_t t=0)
crops time of day to 00:00:00
Definition datetime.cpp:77
Definition datetime.hpp:16
holds time of day
Definition datetime.hpp:59
contains FieldType- and Field-classes
To convert(From value)
convert function