1.0.2 • Published 4 years ago

@seajensen/assorted-time-conversion-package v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

standard-time-conversion-package

This package includes 5 time conversion functions.

standardTimeConversion(Date)

Pass in a Javascript date object and it will return a standard time AM/PM time.

militaryTimeConversion(Date)

Pass in a Javascript date object and it will return a time in military format.

timeZoneGet(Date)

Pass in a Javascript date object and it will return the timezone of the Date received.

timeStampGet(Date)

Pass in a Javascript date object and it will return whether the time is AM or PM.

stringTimeSwitch(Date)

Pass in a string, either in standard time ("11:00pm") or in military time ("23:00"). It will convert standard to military and vice versa.