Wondering what’s next for npm?Check out our public roadmap! »

ajanuw-durationTypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

ajanuw-duration

  • 模拟[Dart]的[Duration]

## Install

λ npm i ajanuw-duration -S

## Usage

<script src="../dist/ajanuw-duration.js"></script>
<script>
   const { Duration } = AjanuwDuration;
   const d = new Duration({ days: 1 });
   console.log(d.inHours); // 24
 
   let d2 = d.add(new Duration({ hours: 3, seconds: 10 }));
   console.log(d2.toString()); /// 27:00:10.000000
</script> 

See also:

https://api.dartlang.org/dev/2.0.0-dev.69.0/dart-core/Duration-class.htm

Install

npm i ajanuw-duration

DownloadsWeekly Downloads

4

Version

0.1.1

License

MIT

Unpacked Size

9.09 kB

Total Files

6

Last publish

Collaborators

  • avatar