You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wechatminiprogram/vendor/github.com/aws/smithy-go/transport/http/time.go

14 lines
324 B

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)
}