Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1206)

Side by Side Diff: src/vm/platform_linux.cc

Issue 1209033003: Work in progres, please take a look and give early feedback if this is the way we want to structure… (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: indentation Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 #include "src/vm/platform.h" 5 #include "src/vm/platform.h"
6 6
7 #include <time.h> 7 #include <time.h>
8 8
9 namespace fletch { 9 namespace fletch {
10 10
11 int Platform::GetLocalTimeZoneOffset() { 11 int Platform::GetLocalTimeZoneOffset() {
12 // TODO(ajohnsen): avoid excessive calls to tzset? 12 // TODO(ajohnsen): avoid excessive calls to tzset?
13 tzset(); 13 tzset();
14 // Even if the offset was 24 hours it would still easily fit into 32 bits. 14 // Even if the offset was 24 hours it would still easily fit into 32 bits.
15 // Note that Unix and Dart disagree on the sign. 15 // Note that Unix and Dart disagree on the sign.
16 return static_cast<int>(-timezone); 16 return static_cast<int>(-timezone);
17 } 17 }
18 18
19 } // namespace fletch 19 } // namespace fletch
20
21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698