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

Unified Diff: corelib/src/date.dart

Issue 10417009: Reapply "Add support for timezone offset and timezone name." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add missing semicolon. Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | frog/lib/date_implementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/date.dart
diff --git a/corelib/src/date.dart b/corelib/src/date.dart
index c3da9d00d9475a8a512db2082e81c47ea26766b1..809530ef59d34329111ded6921a2eac956fd944e 100644
--- a/corelib/src/date.dart
+++ b/corelib/src/date.dart
@@ -113,6 +113,23 @@ interface Date extends Comparable, Hashable default DateImplementation {
Date changeTimeZone(TimeZone targetTimeZone);
/**
+ * Returns the abbreviated time-zone name.
+ *
+ * Examples: [:"CET":] or [:"CEST":].
+ */
+ String get timeZoneName();
+
+ /**
+ * The time-zone offset is the difference between local time and UTC. That is,
+ * the offset is positive for time zones west of UTC.
+ *
+ * Note, that JavaScript, Python and C return the difference between UTC and
+ * local time. Java, C# and Ruby return the difference between local time and
+ * UTC.
+ */
+ Duration get timeZoneOffset();
+
+ /**
* Returns the year.
*/
int get year();
« no previous file with comments | « no previous file | frog/lib/date_implementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698