User:Pratyya Ghosh/Time
15:11:49
This template displays the time of a user's timezone in both 12-hour and 24-hour given user's preference.
Parameters
{{User:Pratyya Ghosh/Time}}
supports 3 parameters.
tz
for timezone. It is the parameter for TimeZone (tz). Detailed possible inputs are given below. By default it is set toUTC.
Timezone parameters
UTC Zone | Code (for Timezone) | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
UTC-12:00 |
| |||||||||
UTC-11:00 |
| |||||||||
UTC-10:00 |
| |||||||||
UTC-09:30 |
| |||||||||
UTC-09:00 |
| |||||||||
UTC-08:00 |
| |||||||||
UTC-07:00 |
| |||||||||
UTC-06:00 |
| |||||||||
UTC-05:00 |
| |||||||||
UTC-04:00 |
| |||||||||
UTC-03:30 |
| |||||||||
UTC-03:00 |
| |||||||||
UTC-02:30 |
| |||||||||
UTC-02:00 |
| |||||||||
UTC-01:00 |
| |||||||||
UTC 00:00 |
| |||||||||
UTC+01:00 |
| |||||||||
UTC+02:00 |
| |||||||||
UTC+03:00 |
| |||||||||
UTC+03:30 |
| |||||||||
UTC+04:00 |
| |||||||||
UTC+04:30 |
| |||||||||
UTC+05:00 |
| |||||||||
UTC+05:30 |
| |||||||||
UTC+05:45 |
| |||||||||
UTC+06:00 |
| |||||||||
UTC+06:30 |
| |||||||||
UTC+07:00 |
| |||||||||
UTC+08:00 |
| |||||||||
UTC+09:00 |
| |||||||||
UTC+09:30 |
| |||||||||
UTC+10:00 |
| |||||||||
UTC+10:30 |
| |||||||||
UTC+11:00 |
| |||||||||
UTC+12:00 |
| |||||||||
UTC+12:45 |
| |||||||||
UTC+13:00 |
| |||||||||
UTC+13:45 |
| |||||||||
UTC+14:00 |
| |||||||||
UTC-10:30 |
H-10:30 | |||||||||
UTC-08:30 |
H-08:30 | |||||||||
UTC-04:30 |
H-04:30 | |||||||||
UTC-00:44 |
H-00:44 | |||||||||
UTC-00:25:21 |
H-00:25:21 | |||||||||
UTC+00:20 | H+00:20 | |||||||||
UTC+00:30 | H+00:30 | |||||||||
UTC+01:24 | H+01:24 | |||||||||
UTC+01:30 | H+01:30 | |||||||||
UTC+02:30 | H+02:30 | |||||||||
UTC+04:51 | H+04:51 | |||||||||
UTC+05:21:14
|
H+05:21:14 | |||||||||
UTC+05:40 | H+05:40 | |||||||||
UTC+05:53:20
|
H+05:53:20 | |||||||||
UTC+06:10:37
|
H+06:10:37 | |||||||||
UTC+07:20 | H+07:20 | |||||||||
UTC+07:30 | H+07:30 | |||||||||
UTC+08:30 | H+08:30 | |||||||||
UTC+08:45 | H+08:45 | |||||||||
UTC+09:45 | H+09:45 | |||||||||
UTC+11:30 | H+11:30 |
format
for hour format. Use12
to make it 12-hour format. By default it is set to 24-hour formatsecond
(Optional) for adding or not adding seconds parameter to end. If input is set asn
orN
then the seconds parameter won't be shown. Otherwise for any input or blank it is to show seconds by default.punc
for punctuation between time parameters. This is default between both. Currently the default is:
punc1
(Optional) for for punctuation between hours and minutes parameter. By default not used.punc2
(Optional) for for punctuation between minutes and seconds parameter. By default not used.tz-display
for display of bracketed users timezone. If usedy
orY
then another parameter will be added. For example{{User:Pratyya Ghosh/Time|tz=+6|tz-display=y}}
will show as21:11:49 (UTC+06:00)
. By default it is not used.purge-display
for display of a subscripted purge link. If usedy
orY
then another parameter will be added. For example{{User:Pratyya Ghosh/Time|tz=+6|purge-display=y}}
will show as21:11:49 (purge)
. By default it is not used.
Notes
The current purge button in the template is not included by default in any place. It's just for this page. If you need to use the purge button then you need to use the purge-display
parameter.
Usage
Code (Basic Parameters) | Display |
---|---|
{{User:Pratyya Ghosh/Time|tz=+6|format=24}} |
21:11:49 |
{{User:Pratyya Ghosh/Time|tz=+5.30|format=12}} |
8:41:49 PM |
{{User:Pratyya Ghosh/Time|tz=+6.00|format=12|second=n}} |
9:11 PM |
{{User:Pratyya Ghosh/Time|tz=+6.00|format=24|second=n}} |
21:11 |
{{User:Pratyya Ghosh/Time|tz=+6|tz-display=y}} |
21:11:49 (UTC+06:00) |
{{User:Pratyya Ghosh/Time|tz=+5.30|purge-display=y}} |
21:11:49 (purge) |
{{User:Pratyya Ghosh/Time|tz=+6|tz-display=y|purge-display =y}} |
21:11:49 (UTC+06:00) (purge) |
{{User:Pratyya Ghosh/Time}} |
15:11:49 |