diff options
Diffstat (limited to 'base/time_posix.cc')
-rw-r--r-- | base/time_posix.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/time_posix.cc b/base/time_posix.cc index 6885cad..8b04be9 100644 --- a/base/time_posix.cc +++ b/base/time_posix.cc @@ -41,6 +41,12 @@ Time Time::Now() { } // static +Time Time::NowFromSystemTime() { + // Just use Now() because Now() returns the system time. + return Now(); +} + +// static Time Time::FromExploded(bool is_local, const Exploded& exploded) { struct tm timestruct; timestruct.tm_sec = exploded.second; |