File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 22// for details. All rights reserved. Use of this source code is governed by a
33// BSD-style license that can be found in the LICENSE file.
44
5+ export 'src/dart/date_time.dart' ;
56export 'src/date.dart' ;
Original file line number Diff line number Diff line change 1+ // Copyright (c) 2025, the Dart project authors. Please see the AUTHORS file
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.
4+
5+ import '../date.dart' ;
6+
7+ extension DateTimeToJSDate on DateTime {
8+ /// Converts this to a [JSDate] that represents the same instant in time.
9+ JSDate get toJS => JSDate .fromMillisecondsSinceEpoch (millisecondsSinceEpoch);
10+ }
You can’t perform that action at this time.
0 commit comments