aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/aws/smithy-go/transport/http/time.go
blob: 607b196a8bdd088fd147a811bb03a6386c45da83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
}