Date conditions
before(date): Check if date is before another date
Stream.of([datetime.now() - timedelta(days=1)])\
.filter(before(datetime.now()))\
.for_each(print) # Output: 2023-06-01 17:03:54.386812after(date): Check if date is after another date
Stream.of([datetime.now() + timedelta(days=1)])\
.filter(after(datetime.now()))\
.for_each(print) # Output: 2023-06-03 17:03:54.386812before_or_equal(date): Check if date is before or equal to another date
Stream.of([datetime.now() - timedelta(days=1)])\
.filter(before_or_equal(datetime.now()))\
.for_each(print) # Output: 2023-06-01 17:03:54.386812after_or_equal(date): Check if date is after or equal to another date
between_or_equal(start_date, end_date): Check if date is between or equal to two dates
not_between_or_equal(start_date, end_date): Check if date is not between or equal to two dates
today(): Check if date is today
today_utc(): Check if date is today in UTC
yesterday(): Check if date is yesterday
yesterday_utc(): Check if date is yesterday in UTC
tomorrow(): Check if date is tomorrow
tomorrow_utc(): Check if date is tomorrow in UTC
this_week(): Check if date is within the current week
this_week_utc(): Check if date is within the current week in UTC
last_week(): Check if date is within the previous week
last_week_utc(): Check if date is within the previous week in UTC
next_week(): Check if date is within the next week
next_week_utc(): Check if date is within the next week in UTC
this_month(): Check if date is within the current month
this_month_utc(): Check if date is within the current month in UTC
last_month(): Check if date is within the previous month
last_month_utc(): Check if date is within the previous month in UTC
next_month(): Check if date is within the next month
next_month_utc(): Check if date is within the next month in UTC
this_year(): Check if date is within the current year
this_year_utc(): Check if date is within the current year in UTC
last_year(): Check if date is within the previous year
last_year_utc(): Check if date is within the previous year in UTC
next_year(): Check if date is within the next year
next_year_utc(): Check if date is within the next year in UTC
Last updated