mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-05 14:23:40 +00:00
Update Time documentation
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user