ctimejs
v0.4.1
Published
light but powerful timestamp and date manipulation library
Downloads
438
Readme
ctime
A light library that provides a minimal function set to manipulate dates and timestamps in Javascript.
Install via npm
$ npm install ctimejs
API
ctime().add(30, 'days').subtract(1, 'year').format((time) => time.utc)
- ctime
- time ✅
- unix ✅
- set ✅
- get ✅
- add ✅
- subtract ✅
- diff ✅
- format ✅
- startOf ✅
- endOf ✅
- parser 🔜
Supported ISO8601 Formats
2008-08-30T01:45:36
2018-03-05T01:45:36Z
2018-03-05T01:45:36.999
2018-03-05T01:45:36.999Z
2018-03-05T01:45:36.999+0100
2018-03-05T01:45:36.999+07:00
2018-03-05T03:08:02.177+0100
ctime?
The name was inspired by the C Programming Language function ctime
. C code is known for being fast and efficient but also for its dangerous sides, which suits the handling of date objects in JS in my opinion.
made with 💙 in cologne.