Module date_time

Module date_time 

Source

Structs§

DateAddFunction
DATEADD function - Add interval to date
DateDiffFunction
DATEDIFF function - Calculate difference between dates
DayFunction
DAY function - extracts day of month from date (1-31)
DayNameFunction
DAYNAME function - returns full day name (Monday, Tuesday, etc.)
DayOfWeekFunction
DAYOFWEEK function - returns day of week as number (0=Sunday, 6=Saturday)
FromUnixTime
FROM_UNIXTIME - Convert Unix epoch timestamp to datetime
IsLeapYearFunction
ISLEAPYEAR function - returns true if the year is a leap year
MonthFunction
MONTH function - extracts month from date (1-12)
MonthNameFunction
MONTHNAME function - returns the month name
NowFunction
NOW function - Returns current datetime
QuarterFunction
QUARTER function - returns the quarter of the year (1-4)
TimeBucket
TIME_BUCKET - Round timestamps down to bucket boundaries
TodayFunction
TODAY function - Returns current date
UnixTimestamp
UNIX_TIMESTAMP - Convert datetime to Unix epoch timestamp
WeekOfYearFunction
WEEKOFYEAR function - returns the ISO week number (1-53)
YearFunction
YEAR function - extracts year from date

Functions§

parse_datetime
register_date_time_functions
Register all date/time functions