0.0.1 • Published 6 years ago
zoned-0-of-clock v0.0.1
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 git@github.com:xiechao06/zoned-0-of-clock.git
$ cd zoned-0-of-clock
$ npm run test
0.0.1
6 years ago