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

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

Issue 2069783002: Fix Windows time zone name extraction. Update API docs (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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) 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 GMT. 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
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 * This value is at most 657 * This value is at most
658 * 8,640,000,000,000,000,000us (100,000,000 days) from the Unix epoch. 658 * 8,640,000,000,000,000,000us (100,000,000 days) from the Unix epoch.
659 * In other words: `microsecondsSinceEpoch.abs() <= 8640000000000000000`. 659 * In other words: `microsecondsSinceEpoch.abs() <= 8640000000000000000`.
660 * 660 *
661 * Note that this value does not fit into 53 bits (the size of a IEEE double). 661 * Note that this value does not fit into 53 bits (the size of a IEEE double).
662 * A JavaScript number is not able to hold this value. 662 * A JavaScript number is not able to hold this value.
663 */ 663 */
664 external int get microsecondsSinceEpoch; 664 external int get microsecondsSinceEpoch;
665 665
666 /** 666 /**
667 * The abbreviated time zone name&mdash;for example, 667 * The time zone name provided by the platform.
668 * [:"CET":] or [:"CEST":]. 668 *
669 * On Unix-like systems this will probably be an abbreviation. On Windows
670 * this will probably be the full-name, e.g. "Pacific Standard Time".
669 */ 671 */
670 external String get timeZoneName; 672 external String get timeZoneName;
671 673
672 /** 674 /**
673 * The time zone offset, which 675 * The time zone offset, which
674 * is the difference between local time and UTC. 676 * is the difference between local time and UTC.
675 * 677 *
676 * The offset is positive for time zones east of UTC. 678 * The offset is positive for time zones east of UTC.
677 * 679 *
678 * Note, that JavaScript, Python and C return the difference between UTC and 680 * Note, that JavaScript, Python and C return the difference between UTC and
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 * In accordance with ISO 8601 754 * In accordance with ISO 8601
753 * a week starts with Monday, which has the value 1. 755 * a week starts with Monday, which has the value 1.
754 * 756 *
755 * DateTime moonLanding = DateTime.parse("1969-07-20 20:18:00"); 757 * DateTime moonLanding = DateTime.parse("1969-07-20 20:18:00");
756 * assert(moonLanding.weekday == 7); 758 * assert(moonLanding.weekday == 7);
757 * assert(moonLanding.weekday == DateTime.SUNDAY); 759 * assert(moonLanding.weekday == DateTime.SUNDAY);
758 * 760 *
759 */ 761 */
760 external int get weekday; 762 external int get weekday;
761 } 763 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698