get 0 o'clock just before a given date in a standard timezone
A convenient utility to get 0 o'clock before a given date in a standard timezone, useful for get statistics.
const getZonedZeroOfClock = require('zoned-0-of-clock')
import getZonedZeroOfClock from 'zoned-0-of-clock'
// return the 0 o'clock just passed away in Tokyo
getZonedZeroOfClock(new Date(), 'Asia/Tokyo')
$ git clone git@github.com:xiechao06/zoned-0-of-clock.git
$ cd zoned-0-of-clock
$ npm run test