zoned-0-of-clock
v0.0.1
Published
get 0 o'clock just before a given date in a standard timezone
Downloads
3
Readme
zoned-0-of-clock
get 0 o'clock just before a given date in a standard timezone
Motivation
A convenient utility to get 0 o'clock before a given date in a standard timezone, useful for get statistics.
Usage
common js
const getZonedZeroOfClock = require('zoned-0-of-clock')
esm
import getZonedZeroOfClock from 'zoned-0-of-clock'
Example
// return the 0 o'clock just passed away in Tokyo
getZonedZeroOfClock(new Date(), 'Asia/Tokyo')
Development
$ git clone [email protected]:xiechao06/zoned-0-of-clock.git
$ cd zoned-0-of-clock
$ npm run test