time.Time.Year (method)

27 uses

	time (current package)
		time.go#L813: func (t Time) Year() int {

	encoding/asn1
		asn1.go#L353: 	if ret.Year() >= 2050 {
		marshal.go#L364: 	year := t.Year()
		marshal.go#L391: 	year := t.Year()
		marshal.go#L406: 	year := t.Year()

	github.com/jackc/pgx/v5/pgtype
		date.go#L164: 		tUnix := time.Date(date.Time.Year(), date.Time.Month(), date.Time.Day(), 0, 0, 0, 0, time.UTC).Unix()
		date.go#L194: 		year := date.Time.Year()
		timestamp.go#L212: 		if year := t.Year(); year <= 0 {
		timestamp.go#L236: 		return time.Date(t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), t.Second(), t.Nanosecond(), time.UTC)
		timestamp.go#L286: 			tim = time.Date(tim.Year(), tim.Month(), tim.Day(), tim.Hour(), tim.Minute(), tim.Second(), tim.Nanosecond(), plan.location)
		timestamp.go#L322: 			year := -tim.Year() + 1
		timestamp.go#L327: 			tim = time.Date(tim.Year(), tim.Month(), tim.Day(), tim.Hour(), tim.Minute(), tim.Second(), tim.Nanosecond(), plan.location)
		timestamptz.go#L211: 		if year := t.Year(); year <= 0 {
		timestamptz.go#L323: 			year := -tim.Year() + 1

	github.com/robfig/cron/v3
		spec.go#L88: 	yearLimit := t.Year() + 5
		spec.go#L91: 	if t.Year() > yearLimit {
		spec.go#L102: 			t = time.Date(t.Year(), t.Month(), 1, 0, 0, 0, 0, loc)
		spec.go#L120: 			t = time.Date(t.Year(), t.Month(), t.Day(), 0, 0, 0, 0, loc)
		spec.go#L141: 			t = time.Date(t.Year(), t.Month(), t.Day(), t.Hour(), 0, 0, 0, loc)

	go.pact.im/x/flaky
		schedule.go#L77: 	midnight := time.Date(now.Year(), now.Month(), now.Day(), 0, 0, 0, 0, now.Location())

	log/slog
		json_handler.go#L94: 	if y := t.Year(); y < 0 || y >= 10000 {

	net/http
		cookie.go#L431: 	return t.Year() >= 1601

	vendor/golang.org/x/crypto/cryptobyte
		asn1.go#L111: 	if t.Year() < 0 || t.Year() > 9999 {
		asn1.go#L125: 		if t.Year() < 1950 || t.Year() >= 2050 {
		asn1.go#L538: 	if res.Year() >= 2050 {