docs/content/en/methods/time/UTC.md
raw| 1 | --- |
| 2 | title: UTC |
| 3 | description: Returns the given time.Time value with the location set to UTC. |
| 4 | categories: [] |
| 5 | keywords: [] |
| 6 | params: |
| 7 | functions_and_methods: |
| 8 | returnType: time.Time |
| 9 | signatures: [TIME.UTC] |
| 10 | --- |
| 11 | |
| 12 | ```go-html-template |
| 13 | {{ $t := time.AsTime "2023-01-27T23:44:58-08:00" }} |
| 14 | {{ $t.UTC }} → 2023-01-28 07:44:58 +0000 UTC |