mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-14 11:23:02 +02:00
27 lines
797 B
Go
27 lines
797 B
Go
package datetime
|
|
|
|
import "github.com/MontFerret/ferret/pkg/runtime/core"
|
|
|
|
func NewLib() map[string]core.Function {
|
|
return map[string]core.Function{
|
|
"NOW": Now,
|
|
"DATE": Date,
|
|
"DATE_DAYOFWEEK": DateDayOfWeek,
|
|
"DATE_YEAR": DateYear,
|
|
"DATE_MONTH": DateMonth,
|
|
"DATE_DAY": DateDay,
|
|
"DATE_HOUR": DateHour,
|
|
"DATE_MINUTE": DateMinute,
|
|
"DATE_SECOND": DateSecond,
|
|
"DATE_MILLISECOND": DateMillisecond,
|
|
"DATE_DAYOFYEAR": DateDayOfYear,
|
|
"DATE_LEAPYEAR": DateLeapYear,
|
|
"DATE_QUARTER": DateQuarter,
|
|
"DATE_DAYS_IN_MONTH": DateDaysInMonth,
|
|
"DATE_FORMAT": DateFormat,
|
|
"DATE_ADD": DateAdd,
|
|
"DATE_SUBTRACT": DateSubtract,
|
|
"DATE_DIFF": DateDiff,
|
|
}
|
|
}
|