Chromium Code Reviews| Index: base/time_posix.cc |
| =================================================================== |
| --- base/time_posix.cc (revision 13971) |
| +++ base/time_posix.cc (working copy) |
| @@ -41,6 +41,12 @@ |
| } |
| // 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; |