Debian Codegraph @

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

raw
1 ---
2 title: IsDST
3 description: Reports whether the given time.Time value is in Daylight Savings Time.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 returnType: bool
9 signatures: [TIME.IsDST]
10 ---
11
12 ```go-html-template
13 {{ $t1 := time.AsTime "2023-01-01T00:00:00-08:00" }}
14 {{ $t2 := time.AsTime "2023-07-01T00:00:00-07:00" }}
15
16 {{ $t1.IsDST }} → false
17 {{ $t2.IsDST }} → true
18 ```