https://github.com/hong4rc/next
https://deno.land/x/next Get coming time after input with hour, minute, second, timezone
https://github.com/hong4rc/next
deno time typescript
Last synced: about 2 months ago
JSON representation
https://deno.land/x/next Get coming time after input with hour, minute, second, timezone
- Host: GitHub
- URL: https://github.com/hong4rc/next
- Owner: hong4rc
- Created: 2020-12-05T18:46:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-06T07:20:33.000Z (over 5 years ago)
- Last Synced: 2026-05-03T07:43:17.741Z (about 2 months ago)
- Topics: deno, time, typescript
- Language: TypeScript
- Homepage:
- Size: 1.95 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# next
> Get coming time after input with hour, minute, second, timezone
## Usage
```js
import next from 'https://deno.land/x/next@0.0.1/index.ts';
next({ hour: 3, minute: 3, timezone: 6.5}, new Date('Nov 13 2020 03:01:00 GMT+0630'))
//=> 2020-11-12T20:33:00.000Z
```
## API
Return coming time after `now` with hour, minute, seconds from `input`
```ts
interface Input {
hour?: number;
minute?: number;
second?: number;
timezone?: number;
}
next(input: Input, now?: Date | number) => Date
```
#### input
normal `hour`, `minute`, `second` and `timezone`