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

Unified Diff: corelib/src/duration.dart

Issue 10890030: Move core and coreimpl from corelib/ to lib/core and lib/coreimpl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase. Created 8 years, 4 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 | « corelib/src/double.dart ('k') | corelib/src/errors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/duration.dart
diff --git a/corelib/src/duration.dart b/corelib/src/duration.dart
deleted file mode 100644
index f492f896dd96d740c6450e0d7a7cb2037aaa7f48..0000000000000000000000000000000000000000
--- a/corelib/src/duration.dart
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// Dart core library.
-
-/**
- * A [Duration] represents a time span. A duration can be negative.
- */
-interface Duration extends Comparable default DurationImplementation {
- /**
- * The duration is the sum of all individual parts. This means that individual
- * parts don't need to be less than the next-bigger unit. For example [hours]
- * is allowed to have a value greater than 23.
- *
- * All individual parts are allowed to be negative.
- * All arguments are by default 0.
- */
- const Duration([int days, int hours, int minutes, int seconds,
- int milliseconds]);
-
- /**
- * Returns this [Duration] in days. Incomplete days are discarded.
- */
- final int inDays;
-
- /**
- * Returns this [Duration] in hours. Incomplete hours are discarded.
- * The returned value can be greater than 23.
- */
- final int inHours;
-
- /**
- * Returns this [Duration] in minutes. Incomplete minutes are discarded.
- * The returned value can be greater than 59.
- */
- final int inMinutes;
-
- /**
- * Returns this [Duration] in seconds. Incomplete seconds are discarded.
- * The returned value can be greater than 59.
- */
- final int inSeconds;
-
- /**
- * Returns this [Duration] in milliseconds.
- */
- final int inMilliseconds;
-
- static final int MILLISECONDS_PER_SECOND = 1000;
- static final int SECONDS_PER_MINUTE = 60;
- static final int MINUTES_PER_HOUR = 60;
- static final int HOURS_PER_DAY = 24;
-
- static final int MILLISECONDS_PER_MINUTE =
- MILLISECONDS_PER_SECOND * SECONDS_PER_MINUTE;
- static final int MILLISECONDS_PER_HOUR =
- MILLISECONDS_PER_MINUTE * MINUTES_PER_HOUR;
- static final int MILLISECONDS_PER_DAY =
- MILLISECONDS_PER_HOUR * HOURS_PER_DAY;
-
- static final int SECONDS_PER_HOUR = SECONDS_PER_MINUTE * MINUTES_PER_HOUR;
- static final int SECONDS_PER_DAY = SECONDS_PER_HOUR * HOURS_PER_DAY;
-
- static final int MINUTES_PER_DAY = MINUTES_PER_HOUR * HOURS_PER_DAY;
-}
« no previous file with comments | « corelib/src/double.dart ('k') | corelib/src/errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698