mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Merge commit '35dec7c96f7ee3eb17dd444f7067f0c776fb56ae'
This commit is contained in:
16
docs/content/en/methods/time/UTC.md
Normal file
16
docs/content/en/methods/time/UTC.md
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
title: UTC
|
||||
description: Returns the given time.Time value with the location set to UTC.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/time/Local
|
||||
- functions/time/AsTime
|
||||
returnType: time.Time
|
||||
signatures: [TIME.UTC]
|
||||
---
|
||||
|
||||
```go-html-template
|
||||
{{ $t := time.AsTime "2023-01-27T23:44:58-08:00" }}
|
||||
{{ $t.UTC }} → 2023-01-28 07:44:58 +0000 UTC
|
Reference in New Issue
Block a user