summaryrefslogtreecommitdiff
path: root/drivers/unix
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2021-10-28 10:16:47 -0500
committerAaron Franke <arnfranke@yahoo.com>2021-10-28 10:16:56 -0500
commit2dabdda36a511e5d1003205ceef1df0dfd401325 (patch)
tree702a4232a730dde9779ef834641d81951087b33b /drivers/unix
parentf7d852b5322104a90d45ef63c2ee54c937429487 (diff)
Update Time documentation
Diffstat (limited to 'drivers/unix')
-rw-r--r--drivers/unix/os_unix.cpp8
-rw-r--r--drivers/unix/os_unix.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp
index 193825a73f..1bc88a86f7 100644
--- a/drivers/unix/os_unix.cpp
+++ b/drivers/unix/os_unix.cpp
@@ -160,10 +160,10 @@ double OS_Unix::get_unix_time() const {
return (double)tv_now.tv_sec + double(tv_now.tv_usec) / 1000000;
};
-OS::Date OS_Unix::get_date(bool utc) const {
+OS::Date OS_Unix::get_date(bool p_utc) const {
time_t t = time(nullptr);
struct tm lt;
- if (utc) {
+ if (p_utc) {
gmtime_r(&t, &lt);
} else {
localtime_r(&t, &lt);
@@ -181,10 +181,10 @@ OS::Date OS_Unix::get_date(bool utc) const {
return ret;
}
-OS::Time OS_Unix::get_time(bool utc) const {
+OS::Time OS_Unix::get_time(bool p_utc) const {
time_t t = time(nullptr);
struct tm lt;
- if (utc) {
+ if (p_utc) {
gmtime_r(&t, &lt);
} else {
localtime_r(&t, &lt);
diff --git a/drivers/unix/os_unix.h b/drivers/unix/os_unix.h
index eb36bf4255..cbc870d385 100644
--- a/drivers/unix/os_unix.h
+++ b/drivers/unix/os_unix.h
@@ -72,8 +72,8 @@ public:
virtual String get_name() const 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;