2 #include <samchon/API.hpp> 4 #include <samchon/library/IOperator.hpp> 7 #include <samchon/WeakString.hpp> 37 class SAMCHON_FRAMEWORK_API
Date 38 :
public std::chrono::system_clock::time_point
41 typedef std::chrono::system_clock::time_point super;
48 static std::chrono::system_clock::time_point
TP_1970;
56 static auto calcSeconds(
int year,
int month,
int date) ->
long long;
64 static auto calcLastDates(
int year)->std::array<int, 12>;
101 Date(
int year,
int month,
int date);
109 Date(
const std::string &);
124 Date(
long long linuxTime);
125 virtual ~
Date() =
default;
133 void set(
const std::string &);
151 void set(
int year,
int month,
int date);
158 void set(
long long linuxTime);
176 virtual void setYear(
int);
190 virtual void setMonth(
int);
197 virtual void setDate(
int);
205 virtual void addYear(
int);
216 virtual void addMonth(
int);
227 virtual void addWeek(
int);
238 virtual void addDate(
int);
248 auto getYear() const ->
int;
255 auto getMonth() const ->
int;
262 auto getDate() const ->
int;
269 auto getDay() const ->
int;
280 auto toTM() const -> struct ::tm;
288 auto toLinuxTime() const ->
long long;
295 virtual auto toString() const->
std::
string;
static std::chrono::system_clock::time_point TP_1970
time_point for 1970-01-01 09:00:00
Date (year, month, day in month)
Top level namespace of products built from samchon.
A string class only references characeters, reference only.