Aika#
You can conveniently select time intervals using the --when= command-line
option, supported by Aika.
Features#
You can use absolute calendar notations,
Week:
2025W01Month:
2025M02,2025-02Quarter:
2025Q03Year:
2025
relative time delta notations,
Day:
-1d,-1 dayWeek:
-1w,-1 weekMonth:
-1M,-1 monthYear:
-1y,-1 yearQuarter:
-3M,-3 monthsMixed:
-3d3h5m30s
or relative human-readable notations.
now
today
last week
this week
last month
this month
Synopsis#
API#
>>> from aika import TimeIntervalParser
>>>
>>> ti = TimeIntervalParser()
>>>
>>> ti.parse("Sat - Tue")
>>> (dt.datetime(2023, 8, 26, 0, 0), dt.datetime(2023, 8, 29, 23, 59, 59, 999999))
CLI#
Todo
Add CLI interface.
Examples#
Report about the previous seven days.
rapporto <anything> --when="-7d"
Report about yesterday.
rapporto <anything> --when="yesterday"
Report about the previous week.
rapporto <anything> --when="last week"
Report about the current week.
rapporto <anything> --when="this week"