%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
// 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. #include <cmath> #include "src/base/platform/platform-posix-time.h" namespace v8 { namespace base { const char* PosixDefaultTimezoneCache::LocalTimezone(double time) { if (std::isnan(time)) return ""; time_t tv = static_cast<time_t>(std::floor(time / msPerSecond)); struct tm tm; struct tm* t = localtime_r(&tv, &tm); if (!t || !t->tm_zone) return ""; return t->tm_zone; } double PosixDefaultTimezoneCache::LocalTimeOffset(double time_ms, bool is_utc) { // Preserve the old behavior for non-ICU implementation by ignoring both // time_ms and is_utc. time_t tv = time(nullptr); struct tm tm; struct tm* t = localtime_r(&tv, &tm); // tm_gmtoff includes any daylight savings offset, so subtract it. return static_cast<double>(t->tm_gmtoff * msPerSecond - (t->tm_isdst > 0 ? 3600 * msPerSecond : 0)); } } // namespace base } // namespace v8