New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

datetime-object

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datetime-object

work easily with dates & times

  • 0.9.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-87.5%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 14 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc