Uniform interface for dates and times


License
BSD-3-Clause
Install
pip install kron==1.6.12

Documentation

Features

  • Classes for durations, timestamps and timezones
  • Minimal non-standard dependencies (ntplib, pytz, tzlocal)
  • Microsecond accuracy (float epoch seconds are rounded to 6 decimal places)
  • Timestamp internal storage is float epoch seconds in UTC
  • Duration internal storage is float seconds
  • Timezone name search by regular expression
  • Default timezone is local timezone
  • Comparison and arithmetic methods for timestamps and durations
  • Test-driven development methodology
  • Named formats
  • Timestamp object "helper" methods for timezones and formats
  • Command line tool
  • Substitutes for time.time(): time, time_ntp, time_utc
  • Supports Python versions >= 3.5.1 and >= 2.7.11