hugo/docs/content/en/methods/time/UTC.md
2023-12-04 15:24:01 +01:00

365 B

title description categories keywords action
UTC Returns the given time.Time value with the location set to UTC.
related returnType signatures
methods/time/Local
functions/time/AsTime
time.Time
TIME.UTC
{{ $t := time.AsTime "2023-01-27T23:44:58-08:00" }}
{{ $t.UTC }} → 2023-01-28 07:44:58 +0000 UTC