X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fbc535ff084f61ec376f339c515d96d74065c18b..5de5db0eb14aa86b5b177050720deb0f4c210fba:/src/common/time.cpp diff --git a/src/common/time.cpp b/src/common/time.cpp index 1d30d65da0..c8a19d6395 100644 --- a/src/common/time.cpp +++ b/src/common/time.cpp @@ -271,6 +271,38 @@ secondTy wxTime::GetSecond() const return (secondTy)(((sec % 86400) % 3600) % 60); } +secondTy wxTime::GetSecondGMT() const +/* + Return the minute of this wxTime in GMT. +*/ +{ + return (secondTy)(((sec % 86400) % 3600) % 60); +} + +int wxTime::GetDay() const +{ + wxDate da((wxDate) *this); + return da.GetDay(); +} + +int wxTime::GetDayOfWeek() const +{ + wxDate da((wxDate) *this); + return da.GetDayOfWeek(); +} + +int wxTime::GetMonth() const +{ + wxDate da((wxDate) *this); + return da.GetMonth(); +} + +int wxTime::GetYear() const +{ + wxDate da((wxDate) *this); + return da.GetYear(); +} + wxTime wxTime::Max(const wxTime& t) const { if (t < *this) return *this;