@lyo/timespan

2.3.0 • Public • Published

@lyo/timespan

A browser-compatible version of timespan built automatically with Lyo.

Version Build Hits

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

Readme

Keywords

none

Package Sidebar

Install

npm i @lyo/timespan

Weekly Downloads

0

Version

2.3.0

License

unknown

Unpacked Size

8.43 kB

Total Files

3

Last publish

Collaborators

  • lyo