1.7.4 • Published 28 days ago

sundial v1.7.4

Weekly downloads
110
License
BSD-2-Clause
Repository
github
Last release
28 days ago

Sundial datetime wrapper

Build Status

The tidepool platform stores timestamps as ISO8601 timestamp with a timezone.

The purposes of this library are:

  1. Wrap the management of dates and times to insulate us from the specific mechanism
  2. Provide consistency for date operations
  3. Provide consistency for date and time formats

NB: In order to ensure the first goal above, no methods in the wrapper return anything but 'pure' JavaScript data types. Strings, numbers, and JavaScript Date objects are expected; 'moment' objects (via Moment.js) are not allowed.

Usage

Install with:

$ npm install --save sundial

Use in Node.js, or client-side with Webpack or Browserify:

var sundial = require('sundial');

Test

Run unit tests with:

$ npm test

Run the tests in-browser locally with:

$ npm run browser-tests
1.7.4

28 days ago

1.7.3

1 month ago

1.7.2

1 month ago

1.7.2-alpha.5

1 month ago

1.7.2-alpha.4

2 months ago

1.7.2-alpha.3

4 months ago

1.7.2-alpha.2

6 months ago

1.7.2-alpha.1

6 months ago

1.7.1

9 months ago

1.7.0

2 years ago

1.6.0

8 years ago

1.5.1

8 years ago

1.5.0

9 years ago

1.4.0

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.8

9 years ago

1.1.7

9 years ago

1.1.6

9 years ago

1.1.5

9 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

10 years ago

0.2.0

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.1

10 years ago