datetime-object

0.9.5 • Public • Published

datetime-object

dateTime-object was created to manipulate dates and times easily in javascript.

This API was designed to work both with all browsers and with Node.js. It's a refactoring of momentjs for clean API and working with Objects. dateTime-object is not mutable except for the methods to update current object explicitly:

  • day(nb)
  • month(nb)
  • year(nb)
  • hours(nb)
  • minutes(nb)
  • seconds(nb)
  • milliSeconds(nb)
It requires moment.

after install

<script src="./node_modules/moment/min/moment-with-locales.min.js"></script>
<script src="./node_modules/datetime-object/distrib/datetime-object.min.js"></script>

without install

<script src="https://cdn.jsdelivr.net/npm/moment@2.23.0/min/moment-with-locales.min.js" integrity="sha256-2upzq+m3oG9Q4Xye6pGvLrXgrzOKtTgR1D2GCLUzL2o=" crossorigin="anonymous"></script>
 <div class="Note" style="color:orange;font-style:italic">
<script src="https://cdn.jsdelivr.net/npm/datetime-object@0.9.4/distrib/datetime-object.min.js" integrity="sha256-PQj2taT+aXrQoKeoYbun6uYbuc1Qo7ZAc63xw/A2oIE=" crossorigin="anonymous"></script>

The lastest version of this document is available on Github > datetime-object

usage

API

Package Sidebar

Install

npm i datetime-object

Weekly Downloads

7

Version

0.9.5

License

MIT

Unpacked Size

139 kB

Total Files

17

Last publish

Collaborators

  • sylvain59