Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a289f8e659a5a68e

Jump to content

Template:UTC hour offset/doc

From Wikipedia, the free encyclopedia

{{UTC hour offset/doc}} takes the current UTC time from the server, and applies an optional time offset in hours (or hours and minutes). It returns the computed local time in 24-hour format (hh:mm).

Syntax:
{{Utc|[hours]|[minutes]}}
  • The hours parameter (optional, default 0) is normally negative for America and West Pacific, it is null or positive in Europe, Africa, Asia and East Pacific.
  • The minutes parameter (optional, default 0) is null for most timezones, but 30 minutes occur in some places, sometimes because of daylight. Use negative values for western timezones that need it.
  • Non integer are accepted for both parameters, but this will be typically used only for hours offsets from UTC.

Examples

[edit]
  • {{Utc}} = "06:21".
  • {{Utc|-3.5}} = "02:51".
  • {{Utc|-3|-30}} = "02:51".
    • Note the negative minute value necessary to match {{time|−3:30|24}} → 02:51 UTC−03:30 [refresh].
  • {{Utc|-4}} = "02:21".
  • {{Utc|2}} = "08:21".
  • {{Utc|6.5}} = "12:51".
  • {{Utc|6|30}} = "12:51".