Home | History | Annotate | Download | only in platform
      1 // Copyright 2017 the V8 project authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef V8_BASE_PLATFORM_PLATFORM_POSIX_H_
      6 #define V8_BASE_PLATFORM_PLATFORM_POSIX_H_
      7 
      8 #include "src/base/platform/platform.h"
      9 #include "src/base/timezone-cache.h"
     10 
     11 namespace v8 {
     12 namespace base {
     13 
     14 class PosixTimezoneCache : public TimezoneCache {
     15  public:
     16   double DaylightSavingsOffset(double time_ms) override;
     17   void Clear() override {}
     18   ~PosixTimezoneCache() override {}
     19 
     20  protected:
     21   static const int msPerSecond = 1000;
     22 };
     23 
     24 }  // namespace base
     25 }  // namespace v8
     26 
     27 #endif  // V8_BASE_PLATFORM_PLATFORM_POSIX_H_
     28