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 void PosixInitializeCommon(bool hard_abort, const char* const gc_fake_mmap);
15 
16 class PosixTimezoneCache : public TimezoneCache {
17  public:
18   double DaylightSavingsOffset(double time_ms) override;
19   void Clear(TimeZoneDetection) override {}
20   ~PosixTimezoneCache() override = default;
21 
22  protected:
23   static const int msPerSecond = 1000;
24 };
25 
26 }  // namespace base
27 }  // namespace v8
28 
29 #endif  // V8_BASE_PLATFORM_PLATFORM_POSIX_H_
30