src

Go monorepo.
git clone git://code.dwrz.net/src
Log | Files | Refs

time.go (324B)


      1 package http
      2 
      3 import (
      4 	"time"
      5 
      6 	smithytime "github.com/aws/smithy-go/time"
      7 )
      8 
      9 // ParseTime parses a time string like the HTTP Date header. This uses a more
     10 // relaxed rule set for date parsing compared to the standard library.
     11 func ParseTime(text string) (t time.Time, err error) {
     12 	return smithytime.ParseHTTPDate(text)
     13 }