docs/content/en/methods/time/Equal.md
raw| 1 | --- |
| 2 | title: Equal |
| 3 | description: Reports whether TIME1 is equal to TIME2. |
| 4 | categories: [] |
| 5 | keywords: [] |
| 6 | params: |
| 7 | functions_and_methods: |
| 8 | returnType: bool |
| 9 | signatures: [TIME1.Equal TIME2] |
| 10 | --- |
| 11 | |
| 12 | ```go-html-template |
| 13 | {{ $t1 := time.AsTime "2023-01-01T17:00:00-08:00" }} |
| 14 | {{ $t2 := time.AsTime "2023-01-01T20:00:00-05:00" }} |
| 15 | |
| 16 | {{ $t1.Equal $t2 }} → true |
| 17 | ``` |