0.2.3 • Published 7 years ago

@twiz/time v0.2.3

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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".