1.0.0 • Published 2 years ago

totimezone v1.0.0

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

toTimeZone

creates a date with time on a determinated timezone

How To Use

ParameterTypeDescription
dataobjectRequired.
data ElementsTypeDescription
datedateRequired ex. new Date()
tzstringRequired timezone ex. 'America/Los_Angeles'
hoursintRequired ex. 8
minutesintRequired ex. 0
secondsintRequired ex. 0

Example

toTimeZone({ date: new Date(), tz: "America/New_York", hours: 8, minutes: 0, seconds: 0 });

Authors