@numty/datetime

The package provides operators and classes to extend functionality of base Date class. NumTy Datetime introduces TimeSpan class that abstracts the time intervals. It gives powerful methods to manipulate, do calculations and convert time intervals to strings in different formats.

Usage no npm install needed!

<script type="module">
  import numtyDatetime from 'https://cdn.skypack.dev/@numty/datetime';
</script>

README

NumTy Datetime

The package provides operators and classes to extend functionality of base Date class. NumTy Datetime introduces TimeSpan class that abstracts the time intervals. It gives powerful methods to manipulate, do calculations and convert time intervals to strings in different formats.

Credits

  • TimeSpan for the great work and brilliant ideas

Resources

Installing

npm install --save @numty/datetime

Running unit tests

Run nx test datetime to execute the unit tests via Jest.