Template:Time: Difference between revisions
m (1 revision) |
(No difference)
|
Latest revision as of 15:57, 9 February 2014
This template is used on 890+ pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at the talk page before implementing them. |
{{Time}} displays the current time in a certain timezone. The time is calculated based on the offset from UTC for the specified timezone taking into account whether daylight saving time is currently active in that timezone. The offset for each implemented timezone is calculated in a sub template (except for UTC).
Note: Most Wikipedia pages display a cached version of the page to reduce server load, so the template will only display the current time as of when the page was last parsed.
Usage
{{Time}} |
→ | 06:19, October 15, 2024 (UTC) ( ) |
{{Time|HST}} |
→ | 20:19, October 14, 2024 (HST) ( ) |
{{Time|AleutST}} |
→ | 21:19, October 14, 2024 (AleutT) ( ) |
{{Time|AKST}} |
→ | 22:19, October 14, 2024 (AKT) ( ) |
{{Time|PST}} |
→ | 23:19, October 14, 2024 (PT) ( ) |
{{Time|MST}} |
→ | 00:19, October 15, 2024 (MT) ( ) |
{{Time|CST}} |
→ | 01:19, October 15, 2024 (CT) ( ) |
{{Time|EST}} |
→ | 02:19, October 15, 2024 (ET) ( ) |
{{Time|AST}} |
→ | 03:19, October 15, 2024 (AT) ( ) |
{{Time|NST}} |
→ | 03:49, October 15, 2024 (NT) ( ) |
{{Time|PMST}} |
→ | 04:19, October 15, 2024 (PMT) ( ) |
{{Time|WGT}} |
→ | 04:19, October 15, 2024 (WGT) ( ) |
{{Time|UTC}} |
→ | 06:19, October 15, 2024 (UTC) ( ) |
{{Time|GMT}} |
→ | 07:19, October 15, 2024 (GMT / BST) ( ) |
{{Time|CET}} |
→ | 08:19, October 15, 2024 (CET / CEST) ( ) |
{{Time|EET}} |
→ | 09:19, October 15, 2024 (EET) ( ) |
{{Time|IST}} |
→ | 11:49, October 15, 2024 (IST) ( ) |
{{Time|WIT}} |
→ | 13:19, October 15, 2024 (WIT) ( ) |
{{Time|BT}} |
→ | 14:19, October 15, 2024 (BT) ( ) |
{{Time|EIT}} |
→ | 15:19, October 15, 2024 (EIT) ( ) |
{{Time|JST}} |
→ | 15:19, October 15, 2024 (JST) ( ) |
{{Time|NTT}} |
→ | 15:49, October 15, 2024 (NTT) ( ) |
{{Time|ChST}} |
→ | 16:19, October 15, 2024 (ChST) ( ) |
{{Time|NZST}} |
→ | 19:19, October 15, 2024 (NZST) ( ) |
Sub templates
These templates are used to calculate the current offset from UTC for each timezone, taking into account whether daylight saving time is active or not.
- {{Time/GMT offset}}
- {{Time/CET offset}}
- {{Time/EET offset}}
- {{Time/PST offset}}
- {{Time/MST offset}}
- {{Time/IST offset}}
- {{Time/CST offset}}
- {{Time/EST offset}}
- {{Time/AST offset}}
- {{Time/AKST offset}}
- {{Time/AleutST offset}}
- {{Time/HST offset}}
- {{Time/ChST offset}}
- {{Time/JST offset}}
- {{Time/BT offset}}
- {{Time/WIT offset}}
- {{Time/EIT offset}}
- {{Time/NTT offset}}
- {{Time/NZST offset}}
Errors
Specifying an unimplemented timezone in the first argument will result in an error, which is displayed using {{FormattingError}}. Pages that contain incorrect use of this template will show up on Category:Pages with incorrect formatting templates use.
See also
- {{currentdate}}
- {{now}}
ko:틀:시간 simple:Template:Time mk:Шаблон:Моменталновреме ja:Template:時間 ru:Шаблон:Time
The above documentation is transcluded from Template:Time/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |