time.Time.Truncate (method)

8 uses

	time (current package)
		time.go#L1403: func (t Time) Truncate(d Duration) Time {

	github.com/aws/aws-sdk-go/private/protocol
		timestamp.go#L51: 	t = t.UTC().Truncate(time.Millisecond)

	github.com/jackc/pgtype
		timestamp.go#L169: 		s = src.Time.Truncate(time.Microsecond).Format(pgTimestampFormat)
		timestamptz.go#L171: 		s = src.Time.UTC().Truncate(time.Microsecond).Format(pgTimestamptzSecondFormat)

	github.com/jackc/pgx/v4/internal/sanitize
		sanitize.go#L50: 				str = arg.Truncate(time.Microsecond).Format("'2006-01-02 15:04:05.999999999Z07:00:00'")

	golang.org/x/pkgsite/internal/testing/sample
		sample.go#L172: 	return time.Now().In(time.UTC).Truncate(time.Microsecond)

	net/http
		fs.go#L433: 	modtime = modtime.Truncate(time.Second)
		fs.go#L484: 	modtime = modtime.Truncate(time.Second)