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.
Early Alpha version looking for early adopters and feedback to guide the development process.
- 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/
Time -> chrono -> Chronos, as a man turning the Zodiac Wheel -> Sagittarius, which is a half man half pony
- Durations
- Periods
- Instant
- LocalDate, LocalTime and LocalDateTime
- Intervals
- Chronology
- Duration Fields
- TimeZone
- DateTime
- DateTime maths
- Parsing and formatting ISO
- 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