robocar-tools/vendor/github.com/aws/smithy-go/transport/http/time.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)
}