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

Side by Side Diff: sdk/lib/core/date_time.dart

Issue 12089066: Fix various warnings from the analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | sdk/lib/json/json.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 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 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.core; 5 part of dart.core;
6 6
7 /** 7 /**
8 * Deprecated class. Please use [DateTime] instead. 8 * Deprecated class. Please use [DateTime] instead.
9 */ 9 */
10 abstract class Date implements Comparable { 10 abstract class Date implements Comparable {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 bool get isUtc; 92 bool get isUtc;
93 93
94 String toString(); 94 String toString();
95 95
96 DateTime add(Duration duration); 96 DateTime add(Duration duration);
97 DateTime subtract(Duration duration); 97 DateTime subtract(Duration duration);
98 Duration difference(DateTime other); 98 Duration difference(DateTime other);
99 } 99 }
100 100
101 /** 101 /**
102 * Date is the public interface to a point in time. 102 * A DateTime object represents a point in time.
103 * 103 *
104 * It can represent time values that are at a distance of at most 104 * It can represent time values that are at a distance of at most
105 * 8,640,000,000,000,000ms (100,000,000 days) from epoch (1970-01-01 UTC). In 105 * 8,640,000,000,000,000ms (100,000,000 days) from epoch (1970-01-01 UTC). In
106 * other words: [:millisecondsSinceEpoch.abs() <= 8640000000000000:]. 106 * other words: [:millisecondsSinceEpoch.abs() <= 8640000000000000:].
107 * 107 *
108 * Also see [Stopwatch] for means to measure time-spans. 108 * Also see [Stopwatch] for means to measure time-spans.
109 */ 109 */
110 class DateTime implements Date { 110 class DateTime implements Date {
111 // Weekday constants that are returned by [weekday] method: 111 // Weekday constants that are returned by [weekday] method:
112 static const int MON = 1; 112 static const int MON = 1;
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 * Returns the millisecond into the second [0...999]. 467 * Returns the millisecond into the second [0...999].
468 */ 468 */
469 external int get millisecond; 469 external int get millisecond;
470 470
471 /** 471 /**
472 * Returns the week day [MON..SUN]. In accordance with ISO 8601 472 * Returns the week day [MON..SUN]. In accordance with ISO 8601
473 * a week starts with Monday which has the value 1. 473 * a week starts with Monday which has the value 1.
474 */ 474 */
475 external int get weekday; 475 external int get weekday;
476 } 476 }
OLDNEW
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | sdk/lib/json/json.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698