This commit is contained in:
2026-08-26 11:01:46 +03:00
parent 34a798d345
commit 4bd1512994
712 changed files with 538122 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package dbr
import (
"database/sql/driver"
"time"
)
// Now is a value that serializes to the current time in UTC.
var Now = nowSentinel{}
const timeFormat = "2006-01-02 15:04:05.000000"
type nowSentinel struct{}
// Value implements a valuer for compatibility
func (n nowSentinel) Value() (driver.Value, error) {
now := time.Now().UTC().Format(timeFormat)
return now, nil
}