/sagittarius

A date and time library for Pony

Primary LanguagePony

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

Build Status

Early Alpha version looking for early adopters and feedback to guide the development process.

Inspirations

Name explained

Time -> chrono -> Chronos, as a man turning the Zodiac Wheel -> Sagittarius, which is a half man half pony

Milestones

  1. Durations
  2. Periods
  3. Instant
  4. LocalDate, LocalTime and LocalDateTime
  5. Intervals
  6. Chronology
  7. Duration Fields
  8. TimeZone
  9. DateTime
  10. DateTime maths
  11. Parsing and formatting ISO

Installation

{
  "type": "github",
  "repo": "slayful/sagittarius"
}
  • stable fetch to fetch your dependencies
  • use "sagittarius" to include this package
  • stable env ponyc to compile your application