Class RDBMSWeekdayOfDateTimeFunction

java.lang.Object
com.kingsrook.qqq.backend.module.rdbms.fieldfunctions.RDBMSWeekdayOfDateTimeFunction
All Implemented Interfaces:
BackendFieldFunctionAdapterInterface, RDBMSFieldFunctionAdapterInterface, Serializable

public class RDBMSWeekdayOfDateTimeFunction extends Object implements RDBMSFieldFunctionAdapterInterface
RDBMS adapter for the WeekdayOfDateTimeFunction that generates MySQL-compatible WEEKDAY(CONVERT_TZ(col, ?, ?)) + 1 SQL expressions.

Converts from UTC to the resolved target time zone before extracting the weekday, applying ISO-8601 numbering (Monday=1 … Sunday=7) by adding 1 to MySQL's result.

See Also: