sagittarius
Date and time library for pony as suggested in this ponyc issue. Currently capable of creating durations of time (of seconds and nanos), instantaneous point on the time-line, local time and dates (in ISO chronology), making basic calculation (adding and subtracting durations from durations and instantaneous points in time).
Time zones, time intervals, custom formatting and parsing are yet to be implemented.
Status
Early Alpha version looking for early adopters and feedback to guide the development process.
Inspirations
- https://docs.rs/chrono/0.3.1/chrono/
- https://github.com/rust-lang/rust-wiki-backup/blob/master/Lib-datetime.md
- http://www.joda.org/joda-time/
Name explained
Time -> chrono -> Chronos, as a man turning the Zodiac Wheel -> Sagittarius, which is a half man half pony
Milestones
- Durations
- Periods
- Instant
- LocalDate, LocalTime and LocalDateTime
- Intervals
- Chronology
- Duration Fields
- TimeZone
- DateTime
- DateTime maths
- Parsing and formatting ISO
Installation
- Install pony-stable
- Update your
bundle.json
{
"type": "github",
"repo": "slayful/sagittarius"
}
stable fetch
to fetch your dependenciesuse "sagittarius"
to include this packagestable env ponyc
to compile your application