OLD | NEW |
---|---|
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 Loading... | |
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—for example, | 667 * The time zone name provided by the platform. |
floitsch
2016/08/22 16:20:25
No need to explicitly use the "provided by the pla
| |
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 Loading... | |
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 } |
OLD | NEW |