An open API service indexing awesome lists of open source software.

https://github.com/juliatime/nanodates.jl

Dates with nanosecond resolved days
https://github.com/juliatime/nanodates.jl

Last synced: 2 months ago
JSON representation

Dates with nanosecond resolved days

Awesome Lists containing this project

README

        

# NanoDates.jl
### celebrating the finer aspects of time 📅 🕰️

----

| [![docs](https://img.shields.io/badge/docs-dev-blue.svg)](https://juliatime.github.io/NanoDates.jl/dev/) | [![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl) | [MIT license](http://opensource.org/licenses/MIT) |
|:------------:|:-----------:|:---------:|
| guidance | clean code | attribution only |

[![DOI](https://zenodo.org/badge/483859789.svg)](https://zenodo.org/badge/latestdoi/483859789)

----

##### motivation

- *Every day should have all the times-of-day* (except where timezone changes apply)

- The `Time` type from Dates supports nanoseconds when dates are not used.
- `Time` works incompletely with`DateTime` which is limited to milliseconds.

- We need date-and-time together, fully resolved, accurate and precise.
- `NanoDate` is familiar and effective
- works well with Dates
- uses `DateTime` methods

- This package is a redesign of `TimesDates`
- `TimesDates` is widely used and well-liked
- offers nanoseond resolved dates (as do we)
- offers nanosecond accurate time zones (we do not)

- Latest
- performant NanoDate ranges with steps that are simple or compound periods
- much faster than Dates with compound period stepsizes
- bugfix (parsing some subsecond layouts)

- Contributors are welcome
- clear code, robust performance, reliable interoperability
- frendly docs, easily followed, well explained

----


| light nanoseconds | metric distance |
|:-----------------:|:-------------------------:|
| 1 ns | 299_793_458 nanometers |
| 1 ns | 0.299_793_458 meters |

         from Grace Hopper (thank you, Grace)