mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 01:53:42 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			324 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			324 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package http
 | 
						|
 | 
						|
import (
 | 
						|
	"time"
 | 
						|
 | 
						|
	smithytime "github.com/aws/smithy-go/time"
 | 
						|
)
 | 
						|
 | 
						|
// ParseTime parses a time string like the HTTP Date header. This uses a more
 | 
						|
// relaxed rule set for date parsing compared to the standard library.
 | 
						|
func ParseTime(text string) (t time.Time, err error) {
 | 
						|
	return smithytime.ParseHTTPDate(text)
 | 
						|
}
 |