We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05aa4db commit 7b891b8Copy full SHA for 7b891b8
field/time.go
@@ -119,6 +119,11 @@ func (field Time) Month() Int {
119
return Int{expr{e: clause.Expr{SQL: "MONTH(?)", Vars: []interface{}{field.RawExpr()}}}}
120
}
121
122
+// Week equal to WEEK(self)
123
+func (field Time) WEEK() Int {
124
+ return Int{expr{e: clause.Expr{SQL: "WEEK(?)", Vars: []interface{}{field.RawExpr()}}}}
125
+}
126
+
127
// Day equal to DAY(self)
128
func (field Time) Day() Int {
129
return Int{expr{e: clause.Expr{SQL: "DAY(?)", Vars: []interface{}{field.RawExpr()}}}}
0 commit comments