@twiz/time

0.2.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @twiz/time

Weekly Downloads

4

Version

0.2.3

License

MIT

Last publish

Collaborators

  • josecarneiro
  • twiz