An open API service indexing awesome lists of open source software.

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

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`