الگو:FULLDATE/توضیحات
![]() | این زیرصفحهٔ مستندات الگو:FULLDATE است. این شامل اطلاعات استفاده، الگوها، پیوندهای بین زبانی و سایر اطلاعات است که در اصل الگو صفحه قرار نمیگیرد. |
{{FULLDATE}} returns the full or short English date at current time (UTC time, as set on the Wikipedia server).
Usage
ویرایش- The
type
parameter is optional and can be either:
- short: display the current month name and day of month
- medium: display the current month name, day of month, and year (default)
- long: display the current month name, day of month, year, and UTC time
- rfc-2822: displays the time in rfc-2822 format
- iso-8601: displays the time in iso-8601 format
- wiki: displays the time in wiki format
- The
time
parameter is optional, and can be used to get a date of other reference (like yesterday, today, tomorrow etc..) Do not use dates before 1970-01-02.
Examples
ویرایش
Code
Result
{{FULLDATE}}
ژوئن ۳, ۲۰۲۴
{{FULLDATE|type=short}}
ژوئن ۳
{{FULLDATE|type=shortish}}
ژوئن. ۳, ۲۰۲۴
{{FULLDATE|type=medium}}
ژوئن ۳, ۲۰۲۴
{{FULLDATE|type=long}}
ژوئن ۳, ۲۰۲۴ ۰۰:۴۰:۱۳
{{FULLDATE|type=day}}
دوشنبه, ۰۳ ژوئن ۲۰۲۴
{{FULLDATE|type=longer}}
دوشنبه, ۰۳ ژوئن ۲۰۲۴ ۰۰:۴۰:۱۳ (UTC)
{{FULLDATE|type=rfc-2822}}
Mon, 03 Jun 2024 00:40:13 +0000
{{FULLDATE|type=iso-8601}}
2024-06-03T00:40:13+00:00
{{FULLDATE|type=wiki}}
۰۰:۴۰:۱۳, ۳ ژوئن ۲۰۲۴ (UTC)
{{FULLDATE|type=date}}
۲۰۲۴-۰۶-۰۳
{{FULLDATE|type=date|time=yesterday}}
۲۰۲۴-۰۶-۰۲
{{FULLDATE|type=date|time=today}}
۲۰۲۴-۰۶-۰۳
{{FULLDATE|type=date|time=tomorrow}}
۲۰۲۴-۰۶-۰۴
{{FULLDATE|type=date|time=1970-01-02}}
۱۹۷۰-۰۱-۰۲
{{FULLDATE|type=date|time=1970-12-31}}
۱۹۷۰-۱۲-۳۱
{{FULLDATE|type=iso-8601|time=1970-01-01 00:00:01}}
1970-01-01T00:00:01+00:00
See also
ویرایش
- Help:Magic words for {{CURRENTDAY}}, etc.