Template talk:Utc

From Citizendium
Revision as of 09:11, 3 June 2008 by imported>J. Noel Chiappa (Unneeded Template:)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Dependency

Is dependent with {{Usertime}}

Usage

{{Utc}} 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 integers are accepted for both parameters, but this will be typically used only for hours offsets from UTC.
Examples:
{{Utc}} = "23:57".
{{Utc|-4}} = "19:57".
{{Utc|2}} = "01:57".
{{Utc|6.5}} = "06:27".
{{Utc|6|30}} = "06:27".
Optimal placement

Use with {{Usertime-text}}

Example placement

{{Usertime-text|John}}{{Utc|-4}}

Produces

Hourglass drawing.svg Where John lives it is approximately: 19:57