1.0.1 • Published 2 years ago

time-factory2 v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Time Factory 2

manipulate time

difference between to date in

difIn(unit, date1, date2)

get difference in

timeFactory.difIn('minutes', date1, date2);

cal(verb, number, unit, date)

timeFactory.cal('add', 4, 'days', new Date());

will return the date 4 days from now 

to(unit, date)

conver date to hours

timeFactory.to('hours', new Date());