https://github.com/mschauer/nanotimes.jl
Nanosecond resolvable date+timeofday and timespan types
https://github.com/mschauer/nanotimes.jl
Last synced: 4 months ago
JSON representation
Nanosecond resolvable date+timeofday and timespan types
- Host: GitHub
- URL: https://github.com/mschauer/nanotimes.jl
- Owner: mschauer
- Created: 2017-09-24T08:28:09.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2020-11-10T12:09:30.000Z (over 5 years ago)
- Last Synced: 2025-01-12T09:21:48.043Z (over 1 year ago)
- Language: Julia
- Homepage:
- Size: 187 KB
- Stars: 0
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NanoTimes.jl
* Work In Process -- made available for testing
#### Copyright ©2017 by Jeffrey Sarnoff. All rights reserved (prior to the release).
----------
### dates with times⋅of⋅day and durations that understand nanoseconds
### timestamps with settable, zero-filling subsecond precision
#### algorithms preserve temporal relationships and local precision
- Times are moments of time: your clock and calendar
- Spans are measures in time: +(3 days), -(5 microseconds), +(1 week 2 days)
#### brings in Base.Dates
- interoperates with Date and DateTime, which are exported
- exports Base.Dates.Time as **Time24**, and interoperates
- interoperates with Base.Dates.Period types, which are exported
----
⋄ fully interoperable with DateTime, Date, Time24 types
⋄ provides a clean, easy-to-understand functional interface
⋄ enhances the ability to work with mixed time masures
⋄ covers all levels of FINRA, MiFID II timestamping
> The 2018 US, EU financial regulations governing timestamps require stamped times encode UTC ±50 microseconds.
This package does not know whether a conforming time server is present. The timestamps will be precise; where the time base is UTC traceable and stable, the timestamps will comply with FINRA and MiFID II 2018 regulations.
-------
| forms | access |
|------|-----|
| | |
| Year .. Nanosecond | the componant itself |
| year .. nanosecond | the raw Int64 value above |
| Years .. Nanoseconds | this and coarser componants in this form |
| years .. nanoseconds | the raw Int64 value above |
- The Year[s], Quarter[s], Month[s] forms are used with Times
- The Hour[s] .. Nanosecond[s] forms are used with Times and with Spans
- The Day and Days are synonyms, Week and Weeks are synonyms
----------
see [these tests](https://github.com/JeffreySarnoff/Nanosecs.jl/blob/master/test/runtests.jl) for a fuller view