Warning
This project is still highly experimental, but we would be delighted to receive feedback (but please be careful with production).
Lunar is a very small date management library to facilitate the development of applications that need to make use of dates and times.
From a business perspective, Lunar could be described as a composable library for manipulating dates, timestamps, and ranges using a proleptic Gregorian representation.
- Working with
Time,Date,DatetimeandZoned_datetime - Range over
comparableelements - Arithmetic and truncation operations
The smallest unit of measurement in Lunar is the second, so this library is not intended for high-precision calculations (but rather serves as a foundation for describing applications centered around calendars so it also does not support negative years or leap seconds).
Important
At the moment, parsing tools and (available) encoded time zones are very limited.