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

Side by Side Diff: runtime/lib/date.cc

Issue 1493033003: Add microsecond support to DateTime. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Minor rename. Created 5 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | runtime/lib/date_patch.dart » ('j') | runtime/lib/date_patch.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #include <time.h> 5 #include <time.h>
6 6
7 #include "vm/bootstrap_natives.h" 7 #include "vm/bootstrap_natives.h"
8 8
9 #include "vm/native_entry.h" 9 #include "vm/native_entry.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 26 matching lines...) Expand all
37 return Integer::New(offset); 37 return Integer::New(offset);
38 } 38 }
39 39
40 40
41 DEFINE_NATIVE_ENTRY(DateNatives_localTimeZoneAdjustmentInSeconds, 0) { 41 DEFINE_NATIVE_ENTRY(DateNatives_localTimeZoneAdjustmentInSeconds, 0) {
42 int adjustment = OS::GetLocalTimeZoneAdjustmentInSeconds(); 42 int adjustment = OS::GetLocalTimeZoneAdjustmentInSeconds();
43 return Integer::New(adjustment); 43 return Integer::New(adjustment);
44 } 44 }
45 45
46 46
47 DEFINE_NATIVE_ENTRY(DateNatives_currentTimeMillis, 0) { 47 DEFINE_NATIVE_ENTRY(DateNatives_currentTimeMicros, 0) {
48 return Integer::New(OS::GetCurrentTimeMillis()); 48 return Integer::New(OS::GetCurrentTimeMicros());
49 } 49 }
50 50
51 } // namespace dart 51 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/lib/date_patch.dart » ('j') | runtime/lib/date_patch.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698