Functionsยง
- add_
days - Add days to a DateTime
- add_
hours - Add hours to a DateTime
- add_
minutes - Add minutes to a DateTime
- day_
of_ week - Get day of week (Monday = 0, Sunday = 6)
- days_
between - Calculate the number of days between two DateTimes
- end_
of_ day - Get the end of day (23:59:59) for a DateTime
- extract_
day - Extract day from DateTime (1-31)
- extract_
hour - Extract hour from DateTime (0-23)
- extract_
minute - Extract minute from DateTime (0-59)
- extract_
month - Extract month from DateTime (1-12)
- extract_
second - Extract second from DateTime (0-59)
- extract_
year - Extract year from DateTime
- hours_
between - Calculate the number of hours between two DateTimes
- is_
after - Check if a DateTime is after another DateTime
- is_
before - Check if a DateTime is before another DateTime
- is_
between - Check if a DateTime is between two DateTimes (inclusive)
- is_
business_ hours - Check if a DateTime falls within business hours (9 AM - 5 PM)
- is_
future - Check if a DateTime is in the future
- is_past
- Check if a DateTime is in the past
- is_
same_ day - Check if two DateTimes are on the same day
- is_
today - Check if a DateTime is today
- is_
weekday - Check if a DateTime is on a weekday (Monday-Friday)
- is_
weekend - Check if a DateTime is on a weekend (Saturday or Sunday)
- is_
within_ duration - Check if a DateTime is within a duration from now
- start_
of_ day - Get the start of day (midnight) for a DateTime
- subtract_
days - Subtract days from a DateTime
- subtract_
hours - Subtract hours from a DateTime
- subtract_
minutes - Subtract minutes from a DateTime