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 time zone name provided by the platform. | 667 * The time zone name. |
668 * | 668 * |
669 * On Unix-like systems this will probably be an abbreviation. On Windows | 669 * This value is provided by the operating system and may be an |
670 * this will probably be the full-name, e.g. "Pacific Standard Time". | 670 * abbreviation or a full name. |
| 671 * |
| 672 * In the browser or on Unix-like systems commonly returns abbreviations, |
| 673 * such as "CET" or "CEST". On Windows returns the full name, for example |
| 674 * "Pacific Standard Time". |
671 */ | 675 */ |
672 external String get timeZoneName; | 676 external String get timeZoneName; |
673 | 677 |
674 /** | 678 /** |
675 * The time zone offset, which | 679 * The time zone offset, which |
676 * is the difference between local time and UTC. | 680 * is the difference between local time and UTC. |
677 * | 681 * |
678 * The offset is positive for time zones east of UTC. | 682 * The offset is positive for time zones east of UTC. |
679 * | 683 * |
680 * Note, that JavaScript, Python and C return the difference between UTC and | 684 * 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... |
754 * In accordance with ISO 8601 | 758 * In accordance with ISO 8601 |
755 * a week starts with Monday, which has the value 1. | 759 * a week starts with Monday, which has the value 1. |
756 * | 760 * |
757 * DateTime moonLanding = DateTime.parse("1969-07-20 20:18:00"); | 761 * DateTime moonLanding = DateTime.parse("1969-07-20 20:18:00"); |
758 * assert(moonLanding.weekday == 7); | 762 * assert(moonLanding.weekday == 7); |
759 * assert(moonLanding.weekday == DateTime.SUNDAY); | 763 * assert(moonLanding.weekday == DateTime.SUNDAY); |
760 * | 764 * |
761 */ | 765 */ |
762 external int get weekday; | 766 external int get weekday; |
763 } | 767 } |
OLD | NEW |