|
|
Make isUtc a getter, change some method names in Date. Weekday is now 1 based.
isUtc is now a getter.
Date.hours -> Date.hour
Date.minutes -> Date.minute
Date.seconds -> Date.second
Date.milliseconds -> Date.millisecond
Date.fromEpoch -> Date.fromMillisecondsSinceEpoch
Date.value -> Date.millisecondsSinceEpoch
Date.MON == 1 (up to Date.SUN == 7).
Fixes issue 3444, 1985.
Committed: https://code.google.com/p/dart/source/detail?r=8899
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+766 lines, -686 lines) |
Patch |
 |
M |
corelib/src/date.dart
|
View
|
1
2
3
|
5 chunks |
+43 lines, -35 lines |
0 comments
|
Download
|
 |
M |
editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/Clock.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/CoreRuntimeTypesTest.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
lib/compiler/implementation/lib/js_helper.dart
|
View
|
1
2
|
1 chunk |
+10 lines, -9 lines |
0 comments
|
Download
|
 |
M |
lib/compiler/implementation/lib/mockimpl.dart
|
View
|
|
5 chunks |
+72 lines, -58 lines |
0 comments
|
Download
|
 |
M |
lib/compiler/implementation/ssa/tracer.dart
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
lib/math/random.dart
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
runtime/bin/file_impl.dart
|
View
|
1
2
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/http_utils.dart
|
View
|
|
1 chunk |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
runtime/bin/timer_impl.dart
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
runtime/lib/date.dart
|
View
|
1
2
|
10 chunks |
+119 lines, -92 lines |
0 comments
|
Download
|
 |
M |
samples/chat/chat_server_lib.dart
|
View
|
1
2
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
samples/chat/dart_client/chat.dart
|
View
|
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
samples/swarm/DataSource.dart
|
View
|
1
2
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
samples/third_party/dromaeo/common/BenchUtil.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
samples/third_party/dromaeo/tests/RunnerSuite.dart
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
samples/total/client/DateTimeUtils.dart
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
samples/total/client/Formats.dart
|
View
|
|
2 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
samples/total/client/SpreadsheetPresenter.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
samples/ui_lib/base/AnimationScheduler.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
samples/ui_lib/touch/TimeUtil.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
samples/ui_lib/util/DateUtils.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tests/co19/co19-leg.status
|
View
|
1
2
|
1 chunk |
+39 lines, -29 lines |
0 comments
|
Download
|
 |
M |
tests/co19/co19-runtime.status
|
View
|
1
2
|
1 chunk |
+39 lines, -29 lines |
0 comments
|
Download
|
 |
M |
tests/corelib/core_runtime_types_test.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tests/corelib/date_time4_test.dart
|
View
|
|
1 chunk |
+20 lines, -20 lines |
0 comments
|
Download
|
 |
M |
tests/corelib/date_time5_test.dart
|
View
|
|
1 chunk |
+37 lines, -37 lines |
0 comments
|
Download
|
 |
M |
tests/corelib/date_time6_test.dart
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
tests/corelib/date_time_test.dart
|
View
|
|
4 chunks |
+320 lines, -313 lines |
0 comments
|
Download
|
 |
M |
tests/language/issue4157508_test.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tests/standalone/io/multiple_timer_test.dart
|
View
|
1
2
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/io/timer_repeat_test.dart
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tests/standalone/io/timer_test.dart
|
View
|
1
2
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|