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

Unified Diff: lib/core/date.dart

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | « lib/core/collection.dart ('k') | lib/core/exceptions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/core/date.dart
diff --git a/lib/core/date.dart b/lib/core/date.dart
index c7e47e0906ae3f3468edf164a0719d38fcd10776..e36a8ba57a21edeb0ebfad583dff903c8b4a0bd7 100644
--- a/lib/core/date.dart
+++ b/lib/core/date.dart
@@ -128,7 +128,7 @@ interface Date extends Comparable, Hashable default DateImplementation {
*
* Examples: [:"CET":] or [:"CEST":].
*/
- String get timeZoneName();
+ String get timeZoneName;
/**
* The time-zone offset is the difference between local time and UTC. That is,
@@ -138,48 +138,48 @@ interface Date extends Comparable, Hashable default DateImplementation {
* local time. Java, C# and Ruby return the difference between local time and
* UTC.
*/
- Duration get timeZoneOffset();
+ Duration get timeZoneOffset;
/**
* Returns the year.
*/
- int get year();
+ int get year;
/**
* Returns the month into the year [1..12].
*/
- int get month();
+ int get month;
/**
* Returns the day into the month [1..31].
*/
- int get day();
+ int get day;
/**
* Returns the hour into the day [0..23].
*/
- int get hour();
+ int get hour;
/**
* Returns the minute into the hour [0...59].
*/
- int get minute();
+ int get minute;
/**
* Returns the second into the minute [0...59].
*/
- int get second();
+ int get second;
/**
* Returns the millisecond into the second [0...999].
*/
- int get millisecond();
+ int get millisecond;
/**
* Returns the week day [MON..SUN]. In accordance with ISO 8601
* a week starts with Monday which has the value 1.
*/
- int get weekday();
+ int get weekday;
/**
* The milliseconds since 1970-01-01T00:00:00Z (UTC). This value is
@@ -187,12 +187,12 @@ interface Date extends Comparable, Hashable default DateImplementation {
*
* See [Stopwatch] for means to measure time-spans.
*/
- int get millisecondsSinceEpoch();
+ int get millisecondsSinceEpoch;
/**
* True if this [Date] is set to UTC time.
*/
- bool get isUtc();
+ bool get isUtc;
/**
* Returns a human readable string for this instance.
« no previous file with comments | « lib/core/collection.dart ('k') | lib/core/exceptions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698