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 std::string asString(
const std::string& format=
"%u")
const;
70 time_t timeStamp()
const;
72 std::string asString(
const std::string& format=
"%u")
const;
80 Date& setTimeStamp(time_t t);
83 Date convert<const std::string&, Date>(
const std::string& value);
85 DateTime convert<const std::string&, DateTime>(
const std::string& value);
88 std::string convert<const Date&, std::string>(
const Date& value);
90 std::string convert<const DateTime&, std::string>(
const DateTime& value);
92 std::ostream& operator << (std::ostream& os,
const Date& d);
93 std::ostream& operator << (std::ostream& os,
const DateTime& d);
holds date and time of day
Definition: datetime.hpp:60
holds date
Definition: datetime.hpp:39
Date(time_t t=0)
crops time of day to 00:00:00
Definition: datetime.cpp:62
Definition: datetime.hpp:16
contains FieldType- and Field-classes