https://github.com/jeffreysarnoff/compoundperiods.jl
enhances Dates.CompoundPeriod
https://github.com/jeffreysarnoff/compoundperiods.jl
julia periods time
Last synced: 2 months ago
JSON representation
enhances Dates.CompoundPeriod
- Host: GitHub
- URL: https://github.com/jeffreysarnoff/compoundperiods.jl
- Owner: JeffreySarnoff
- License: mit
- Created: 2018-03-21T19:10:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-15T00:47:20.000Z (over 1 year ago)
- Last Synced: 2024-03-15T02:08:59.905Z (over 1 year ago)
- Topics: julia, periods, time
- Language: Julia
- Size: 291 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## CompoundPeriods.jl
### Some enhancements for Dates.CompoundPeriod----
#### Copyright © 2018 by Jeffrey Sarnoff. Released under The MIT License.
-----
[](http://jeffreysarnoff.github.io/CompoundPeriods.jl/latest/)
-----
This package enhances the CompoundPeriod type defined within Dates (Dates.CompoundPeriod). A CompoundPeriod is formed by attaching (adding) two or more distinct Periods:```julia
julia> using Datesjulia> typeof( Year(1999) ), typeof( Hour(15) )
Year, Hourjulia> typeof( Year(1999) + Hour(15) )
Dates.CompoundPeriod
```Note that `typeof( compound_period )` is shown as `CompoundPeriod` rather than `Dates.CompoundPeriod`. This lets you know that enhanced CompoundPeriods are in use.
```julia
julia> using CompoundPeriods, Datesjulia> typeof( Year(1999) + Hour(15) )
CompoundPeriod
```