Ora, a time and date library

Overview

Ora is a complete implementation of dates and times for Python and NumPy.

  • A concise, ergonomic API centered around physical times and localization.
  • Fast and easy formatting and parsing.
  • Batteries included: time zones, calendars.
  • High performance, as good or better than other implementations.
  • NumPy dtypes for date and time types, with ufunc/vectorized operations.

Ora also provides some advanced and experimental features, such as time and date types in multiple widths; calendars; and C++ library support.

Ora is not a drop-in replacement for datetime or other Python time libraries, but supports easy interoperability.

Tour

>>> time = now()
>>> print(time)
2018-03-01T13:07:25.04988400+00:00
>>> date, daytime = time @ "America/New_York"
>>> print(date)
2018-03-01

Back matter