diff options
Diffstat (limited to 'base/time.h')
-rw-r--r-- | base/time.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/time.h b/base/time.h index b43aece..a2d145c 100644 --- a/base/time.h +++ b/base/time.h @@ -213,10 +213,12 @@ class Time { static Time FromTimeT(time_t tt); time_t ToTimeT() const; - // Converts time to a double which is the number of seconds since epoch + // Converts time to/from a double which is the number of seconds since epoch // (Jan 1, 1970). Webkit uses this format to represent time. + static Time FromDoubleT(double dt); double ToDoubleT() const; + #if defined(OS_WIN) static Time FromFileTime(FILETIME ft); FILETIME ToFileTime() const; |