@seajensen/assorted-time-conversion-package

Includes a few functions for altering

Usage no npm install needed!

<script type="module">
  import seajensenAssortedTimeConversionPackage from 'https://cdn.skypack.dev/@seajensen/assorted-time-conversion-package';
</script>

README

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.