Index: base/time.h |
diff --git a/base/time.h b/base/time.h |
index 5eac21567232f63db04e465105e7ccae62e70f8b..148727662344e5ea17cc4e79d8d9b8b5968d79b8 100644 |
--- a/base/time.h |
+++ b/base/time.h |
@@ -266,6 +266,12 @@ class BASE_EXPORT Time { |
static Time FromDoubleT(double dt); |
double ToDoubleT() const; |
+ // Converts to/from the Javascript convention for times, a number of |
+ // milliseconds since the epoch: |
+ // https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/getTime. |
+ static Time FromJsTime(double ms_since_epoch); |
+ double ToJsTime() const; |
+ |
#if defined(OS_POSIX) |
struct timeval ToTimeVal() const; |
#endif |