gftime

Small module for working with time strings (a.k.a '13:00')

Usage no npm install needed!

<script type="module">
  import gftime from 'https://cdn.skypack.dev/gftime';
</script>

README

Time

Used this module in a scheduleapp. Simpler than using date libraries, might add functionallity later.

installation

npm i gftime

example usage

import Time from "gftime"

const time = new Time("13:00")

time.changeInMinutes(30).toString() // => 13:30
time.changeInMinutes(60 * 23).toString() // => 12:00
time.changeInMinutes(-30).toString() // => 12:30