Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for timezone (0.14 sec)

  1. internal/s3select/sql/timestampfuncs.go

    	timePartMonth          = "MONTH"
    	timePartDay            = "DAY"
    	timePartHour           = "HOUR"
    	timePartMinute         = "MINUTE"
    	timePartSecond         = "SECOND"
    	timePartTimezoneHour   = "TIMEZONE_HOUR"
    	timePartTimezoneMinute = "TIMEZONE_MINUTE"
    )
    
    func extract(what string, t time.Time) (v *Value, err error) {
    	switch what {
    	case timePartYear:
    		return FromInt(int64(t.Year())), nil
    	case timePartMonth:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.8K bytes
    - Viewed (0)
  2. internal/amztime/iso8601_time.go

    )
    
    // ISO8601Format converts time 't' into ISO8601 time format expected in AWS S3 spec.
    //
    // This function is needed to avoid a Go's float64 precision bug, where Go avoids
    // padding the extra '0' before the timezone.
    func ISO8601Format(t time.Time) string {
    	value := t.Format(iso8601TimeFormat)
    	if len(value) < len(iso8601TimeFormat) {
    		value = t.Format(iso8601TimeFormat[:len(iso8601TimeFormat)-1])
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 16 23:38:33 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  3. tests/tests_test.go

    )
    
    var DB *gorm.DB
    var (
    	mysqlDSN     = "gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8&parseTime=True&loc=Local"
    	postgresDSN  = "user=gorm password=gorm dbname=gorm host=localhost port=9920 sslmode=disable TimeZone=Asia/Shanghai"
    	sqlserverDSN = "sqlserver://gorm:LoremIpsum86@localhost:9930?database=gorm"
    	tidbDSN      = "root:@tcp(localhost:9940)/test?charset=utf8&parseTime=True&loc=Local"
    )
    
    func init() {
    	var err error
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Dec 15 08:36:08 GMT 2023
    - 3.3K bytes
    - Viewed (1)
  4. cmd/healthcheck-handler.go

    		// take this server down, return appropriate error.
    		if opts.Maintenance {
    			writeResponse(w, http.StatusPreconditionFailed, nil, mimeNone)
    		} else {
    			writeResponse(w, http.StatusServiceUnavailable, nil, mimeNone)
    		}
    		return
    	}
    	writeResponse(w, http.StatusOK, nil, mimeNone)
    }
    
    // ClusterReadCheckHandler returns if the server is ready for requests.
    func ClusterReadCheckHandler(w http.ResponseWriter, r *http.Request) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 03 21:13:20 GMT 2024
    - 6.5K bytes
    - Viewed (0)
Back to top