Update Time documentation
This commit is contained in:
parent
f7d852b532
commit
2dabdda36a
8 changed files with 32 additions and 28 deletions
|
|
@ -441,12 +441,13 @@ String OS_UWP::get_name() const {
|
|||
return "UWP";
|
||||
}
|
||||
|
||||
OS::Date OS_UWP::get_date(bool utc) const {
|
||||
OS::Date OS_UWP::get_date(bool p_utc) const {
|
||||
SYSTEMTIME systemtime;
|
||||
if (utc)
|
||||
if (utc) {
|
||||
GetSystemTime(&systemtime);
|
||||
else
|
||||
} else {
|
||||
GetLocalTime(&systemtime);
|
||||
}
|
||||
|
||||
Date date;
|
||||
date.day = systemtime.wDay;
|
||||
|
|
@ -457,7 +458,7 @@ OS::Date OS_UWP::get_date(bool utc) const {
|
|||
return date;
|
||||
}
|
||||
|
||||
OS::Time OS_UWP::get_time(bool utc) const {
|
||||
OS::Time OS_UWP::get_time(bool p_utc) const {
|
||||
SYSTEMTIME systemtime;
|
||||
if (utc)
|
||||
GetSystemTime(&systemtime);
|
||||
|
|
|
|||
|
|
@ -185,8 +185,8 @@ public:
|
|||
|
||||
virtual String get_name() const;
|
||||
|
||||
virtual Date get_date(bool utc) const;
|
||||
virtual Time get_time(bool utc) const;
|
||||
virtual Date get_date(bool p_utc) const;
|
||||
virtual Time get_time(bool p_utc) const;
|
||||
virtual TimeZoneInfo get_time_zone_info() const;
|
||||
virtual uint64_t get_unix_time() const;
|
||||
|
||||
|
|
|
|||
|
|
@ -290,12 +290,13 @@ String OS_Windows::get_name() const {
|
|||
return "Windows";
|
||||
}
|
||||
|
||||
OS::Date OS_Windows::get_date(bool utc) const {
|
||||
OS::Date OS_Windows::get_date(bool p_utc) const {
|
||||
SYSTEMTIME systemtime;
|
||||
if (utc)
|
||||
if (p_utc) {
|
||||
GetSystemTime(&systemtime);
|
||||
else
|
||||
} else {
|
||||
GetLocalTime(&systemtime);
|
||||
}
|
||||
|
||||
Date date;
|
||||
date.day = systemtime.wDay;
|
||||
|
|
@ -306,12 +307,13 @@ OS::Date OS_Windows::get_date(bool utc) const {
|
|||
return date;
|
||||
}
|
||||
|
||||
OS::Time OS_Windows::get_time(bool utc) const {
|
||||
OS::Time OS_Windows::get_time(bool p_utc) const {
|
||||
SYSTEMTIME systemtime;
|
||||
if (utc)
|
||||
if (p_utc) {
|
||||
GetSystemTime(&systemtime);
|
||||
else
|
||||
} else {
|
||||
GetLocalTime(&systemtime);
|
||||
}
|
||||
|
||||
Time time;
|
||||
time.hour = systemtime.wHour;
|
||||
|
|
|
|||
|
|
@ -122,8 +122,8 @@ public:
|
|||
|
||||
virtual void initialize_joypads() override {}
|
||||
|
||||
virtual Date get_date(bool utc) const override;
|
||||
virtual Time get_time(bool utc) const override;
|
||||
virtual Date get_date(bool p_utc) const override;
|
||||
virtual Time get_time(bool p_utc) const override;
|
||||
virtual TimeZoneInfo get_time_zone_info() const override;
|
||||
virtual double get_unix_time() const override;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue