【文件属性】:
文件名称:ms.dart:Dart 的微小毫秒转换实用程序
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-11 07:30:16
Dart
ms.dart:毫秒转换实用程序
端口。
安装
在您的pubspec.yaml添加:
dependencies:
ms: ">=0.0.1"
然后运行
$ pub get
用法
在你的Dart代码中,
import 'package:typeof/typeof.dart' ;
ms ( '2 days' ); // 172800000
ms ( '1d' ); // 86400000
ms ( '10h' ); // 36000000
ms ( '2.5 hrs' ); // 9000000
ms ( '2h' ); // 7200000
ms ( '1m' ); // 60000
ms ( '5s' ); // 5000
ms ( '100' ); // 100
ms ( 60000 );
【文件预览】:
ms.dart-master
----pubspec.yaml(199B)
----lib()
--------src()
--------ms.dart(33B)
----LICENSE(1KB)
----test()
--------packages(11B)
--------ms_test.dart(2KB)
----README.md(910B)
----tool()
--------run_tests.sh(197B)
----.gitignore(241B)