Debian Codegraph @

docs/content/en/methods/time/Year.md

raw
1 ---
2 title: Year
3 description: Returns the year of the given time.Time value.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 returnType: int
9 signatures: [TIME.Year]
10 ---
11
12 ```go-html-template
13 {{ $t := time.AsTime "2023-01-27T23:44:58-08:00" }}
14 {{ $t.Year }} → 2023
15 ```