ٹائم فنکشن یا #time میڈیاویکی کا ایک پارسر فنکشن ہے جس کے ذریعہ تاریخ اور وقت کو متعدد شکلوں میں تحریر اور دکھایا جاتا ہے۔ مثلاً:


  • {{#time:j F Y}}                کا نتیجہ: 24 مارچ 2024، متناسق عالمی وقت کے مطابق جاری تاریخ
  • {{#time:F j، Y}}               کا نتیجہ: مارچ 24، 2024، مہینہ، دن، سال فارمیٹ میں جاری تاریخ
  • {{#time:Y-m-d}}                کا نتیجہ: 2024-03-24، جاری ISO 8601 تاریخ
  • {{#time:H:i:s}}                کا نتیجہ: 17:31:17، جاری وقت
  • {{#time:l}}                    کا نتیجہ  "اتوار" ہفتہ کے جاری دن کے طور پر
  • {{#time:\d\a\y D}}             کا نتیجہ  "day اتوار" جاری سہ حرفی دن کے طور پر
  • {{#time:F j. Y|7 May 2013|de}} کا نتیجہ  "Mai 7. 2013" جرمنی تاریخ
  • {{#time:xij xiF xiY}}          کا نتیجہ  "5 فروردین 1403" ایرانی تقویم کے مطابق تاریخ

ٹائم فارمیٹ رموز ترمیم

درج ذیل جدول میں تاریخ/وقت کے فارمیٹس کے 35 مختلف رموز موجود ہیں، نیز دیگر زبانوں میں مہینوں کے لیے جو رموز اور ایکس رموز (x_) استعمال ہوتے ہیں انھیں بھی درج کیا گیا ہے، یہ ایکس رموز دیگر متعدد تقویموں اور اعداد کے نظاموں کو تبدیل کرنے کے لیے استعمال کیے جاتے ہیں۔۔

style="background:#C5D8FC" | رمز style="background:#C5D8FC" | وضاحت style="background:#C5D8FC" | موجودہ نتیجہ
(تجدید کے لیے اس صفحہ کا کیشے صاف کریں)
Year
Y 4-digit year. 2024
y 2-digit year. 24
L 1 if it's a leap year, 0 if not. 1
o ¹ ISO-8601 year of the specified week. ² 2024 ³

¹ Requires PHP 5.1.0 and newer and rev:45208.
² This has the same value as Y, except that if the ISO week number (W) belongs to the previous or next year, that year is used instead.
³ Will output literal o if ¹ not fulfilled.

Month
n Month index, not zero-padded. 3
m Month index, zero-padded. 03
M An abbreviation of the month name, in the site language. مارچ
F The full month name in the site language. مارچ
xg Output the full month name in the genitive form for site languages that distinguish between genitive and nominative forms. For Polish:

(nominative)

{{#time:d F Y|20 June 2010}|pl}} → 20 czerwiec 2010

(genitive)

{{#time:d xg Y|20 June 2010|pl}} → 20 czerwca 2010

Week
W ISO 8601 week number, zero-padded. 12
Day
j Day of the month, not zero-padded. 24
d Day of the month, zero-padded. 24
z Day of the year (January 1 = 0).
[[#ref_{{{1}}}|^]] To get the ISO day of the year add 1.
83
D An abbreviation for the day of the week. Rarely internationalised. اتوار
l The full weekday name. Rarely internationalised. اتوار
N ISO 8601 day of the week (Monday = 1, Sunday = 7). 7
w Number of the day of the week (Sunday = 0, Saturday = 6). 0
Hour
a "am" during the morning (00:00:00 → 11:59:59), "pm" otherwise (12:00:00 → 23:59:59). pm
A Uppercase version of a above. PM
g Hour in 12-hour format, not zero-padded. 5
h Hour in 12-hour format, zero-padded. 05
G Hour in 24-hour format, not zero-padded. 17
H Hour in 24-hour format, zero-padded. 17
Minutes and seconds
i Minutes past the hour, zero-padded. 31
s Seconds past the minute, zero-padded. 17
U Seconds since January 1 1970 00:00:00 GMT. 1711301477
Timezone (as of 1.22wmf2)
e Timezone identifier. UTC
I Whether or not the date is in daylight savings time. 0
O Difference to Greenwich time (GMT) +0000
P Difference to Greenwich time (GMT), with colon +00:00
T Timezone abbreviation. UTC
Z Timezone offset in seconds. 0
Miscellaneous
t Number of days in the current month. 31
c ISO 8601 formatted date, equivalent to Y-m-dTH:i:s+00:00. 2024-03-24T17:31:17+00:00
r RFC 5322 formatted date, equivalent to D, j M Y H:i:s +0000, with weekday name and month name not internationalised. Sun, 24 Mar 2024 17:31:17 +0000
Non-Gregorian calendars
Islamic
xmj Day of the month. 14
xmF Full month name. رمضان
xmn Month index. 9
xmY Full year. 1445
Iranian (Jalaly)
xij Day of the month. 5
xiF Full month name. فروردین
xin Month index. 1
xiY Full year. 1403
xiy 2-digit year. 03
Hebrew
xjj Day of the month. 14
xjF Full month name. Adar II
xjt Number of days in month. 29
xjx Genitive form of the month name. Adar II
xjn Month number. 14
xjY Full year. 5784
Thai solar
xkY Full year. 2567
Minguo/Juche year
xoY Full year. 113
Japanese nengo
xtY Full year. 令和6
Flags
xn Format the next numeric code as a raw ASCII number. In the Hindi language, {{#time:H, xnH}} produces ०६, 06.
xN Like xn, but as a toggled flag, which endures until the end of the string or until the next appearance of xN in the string.
xr Format the next number as a Roman numeral. Only works for numbers up to 10,000
(up to 3,000 in pre MediaWiki 1.20).
{{#time:xrY}} → MMXXIV
xh
Format the next number as a Hebrew numeral. {{#time:xhY}} → ב'כ"ד

مزید دیکھیے ترمیم