Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for mwisho (0.14 sec)

  1. internal/bucket/object/lock/lock.go

    )
    
    const (
    	ntpServerEnv = "MINIO_NTP_SERVER"
    )
    
    var ntpServer = env.Get(ntpServerEnv, "")
    
    // UTCNowNTP - is similar in functionality to UTCNow()
    // but only used when we do not wish to rely on system
    // time.
    func UTCNowNTP() (time.Time, error) {
    	// ntp server is disabled
    	if ntpServer == "" {
    		return time.Now().UTC(), nil
    	}
    	return ntp.Time(ntpServer)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
Back to top