Skip to content

hong4rc/next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

next

Get coming time after input with hour, minute, second, timezone

Usage

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

interface Input {
    hour?: number;
    minute?: number;
    second?: number;
    timezone?: number;
}
next(input: Input, now?: Date | number) => Date

input

normal hour, minute, second and timezone

About

https://deno.land/x/next Get coming time after input with hour, minute, second, timezone

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published