@lyo/timespan
A browser-compatible version of timespan built automatically with Lyo.
Usage
In a browser
<script src="https://cdn.jsdelivr.net/npm/@lyo/timespan"></script>
<script>
timespan.TimeSpan(args...);
timespan.fromMilliseconds(foo);
timespan.fromSeconds(foo);
timespan.fromMinutes(foo);
timespan.fromHours(foo);
timespan.fromDays(foo);
timespan.parse(foo);
timespan.parseDate(foo);
timespan.fromDates(foo, bar, baz);
timespan.test(foo);
timespan.instanceOf(foo);
timespan.clone(foo);
</script>
In Node.js
# Install
npm i @lyo/timespan
const timespan = require('@lyo/timespan')
timespan.TimeSpan(args...);
timespan.fromMilliseconds(foo);
timespan.fromSeconds(foo);
timespan.fromMinutes(foo);
timespan.fromHours(foo);
timespan.fromDays(foo);
timespan.parse(foo);
timespan.parseDate(foo);
timespan.fromDates(foo, bar, baz);
timespan.test(foo);
timespan.instanceOf(foo);
timespan.clone(foo);
Disclaimer
This automated Lyo build may have not been properly tested, and is not guaranteed to work perfectly.
Use at your own risk