npm.io
0.2.3 • Published 8 years ago

@twiz/time

Licence
MIT
Version
0.2.3
Deps
1
Vulns
0
Weekly
0

Twiz Time

Instant Class

Instant represents a specific point in time.

Takes an object with several possible formats:

  • Object
  • Date javascript object

Interval Class

Represents the interval between two points in time.


Duration Class

Represents a length of time. Eg. 1 month, 1 day.


Period Class

Something that happens in a repetitive pattern. Like New year's day.


To do:

  • Implement Duration or Period Class
  • Write Missing Tests

Inspired by Maggie Pint's "Temporal Proposal".