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

Side by Side Diff: compiler/lib/implementation/time_zone_implementation.dart

Issue 9702034: Removes dartc reliance on its own libraries, now can be targeted at any implementation's libraries (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
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 file.
4
5 // Dart core library.
6
7 // JavaScript implementation of TimeZoneImplementation.
8 class TimeZoneImplementation implements TimeZone {
9 const TimeZoneImplementation.utc() : this.isUtc = true;
10 const TimeZoneImplementation.local() : this.isUtc = false;
11
12 bool operator ==(other) {
13 if (!(other is TimeZoneImplementation)) return false;
14 return isUtc == other.isUtc;
15 }
16
17 String toString() {
18 if (isUtc) return "TimeZone (UTC)";
19 return "TimeZone (Local)";
20 }
21
22 final bool isUtc;
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698