zoned-0-of-clock

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i zoned-0-of-clock

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

2.44 kB

Total Files

5

Last publish

Collaborators

  • xiechao06