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

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

Issue 111463004: Adding library level docs for async, io, convert and fixing a bug in dart:core (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: insurance Created 6 years, 11 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/convert/convert.dart ('k') | sdk/lib/io/io.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 * An instant in time, such as July 20, 1969, 8:18pm PST. 8 * An instant in time, such as July 20, 1969, 8:18pm GMT.
9 * 9 *
10 * Create a DateTime object by using one of the constructors 10 * Create a DateTime object by using one of the constructors
11 * or by parsing a correctly formatted string, 11 * or by parsing a correctly formatted string,
12 * which complies with a subset of ISO 8601. 12 * which complies with a subset of ISO 8601.
13 * Note that hours are specified between 0 and 23, 13 * Note that hours are specified between 0 and 23,
14 * as in a 24-hour clock. 14 * as in a 24-hour clock.
15 * For example: 15 * For example:
16 * 16 *
17 * DateTime now = new DateTime.now(); 17 * DateTime now = new DateTime.now();
18 * DateTime berlinWallFell = new DateTime(1989, 11, 9); 18 * DateTime berlinWallFell = new DateTime(1989, 11, 9);
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 * In accordance with ISO 8601 576 * In accordance with ISO 8601
577 * a week starts with Monday, which has the value 1. 577 * a week starts with Monday, which has the value 1.
578 * 578 *
579 * DateTime moonLanding = DateTime.parse("1969-07-20 20:18:00"); 579 * DateTime moonLanding = DateTime.parse("1969-07-20 20:18:00");
580 * assert(moonLanding.weekday == 7); 580 * assert(moonLanding.weekday == 7);
581 * assert(moonLanding.weekday == DateTime.SUNDAY); 581 * assert(moonLanding.weekday == DateTime.SUNDAY);
582 * 582 *
583 */ 583 */
584 external int get weekday; 584 external int get weekday;
585 } 585 }
OLDNEW
« no previous file with comments | « sdk/lib/convert/convert.dart ('k') | sdk/lib/io/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698