platform-posix.h 713 Bytes
Newer Older
1 2 3 4 5 6 7
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_BASE_PLATFORM_PLATFORM_POSIX_H_
#define V8_BASE_PLATFORM_PLATFORM_POSIX_H_

8
#include "src/base/platform/platform.h"
9 10 11 12 13 14 15 16
#include "src/base/timezone-cache.h"

namespace v8 {
namespace base {

class PosixTimezoneCache : public TimezoneCache {
 public:
  double DaylightSavingsOffset(double time_ms) override;
17
  void Clear(TimeZoneDetection) override {}
18
  ~PosixTimezoneCache() override = default;
19 20 21 22 23 24 25 26 27

 protected:
  static const int msPerSecond = 1000;
};

}  // namespace base
}  // namespace v8

#endif  // V8_BASE_PLATFORM_PLATFORM_POSIX_H_