summaryrefslogtreecommitdiffstats
path: root/base/time_posix.cc
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-18 00:42:48 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-18 00:42:48 +0000
commit85786f935163dd4c46dc2931111189e8d119d4d8 (patch)
tree41c674929dc600ac070fed446013754d87e34b83 /base/time_posix.cc
parent0effc1cb2317bc1e6ae41a8a1b831921e45d62bd (diff)
downloadchromium_src-85786f935163dd4c46dc2931111189e8d119d4d8.zip
chromium_src-85786f935163dd4c46dc2931111189e8d119d4d8.tar.gz
chromium_src-85786f935163dd4c46dc2931111189e8d119d4d8.tar.bz2
Retrial of the first step to port file_util::CountFilesCreatedAfter()
Submitting http://codereview.chromium.org/75033 on behalf of hamaji Review URL: http://codereview.chromium.org/67276 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13993 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/time_posix.cc')
-rw-r--r--base/time_posix.cc6
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;