الگو: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}}
Wed, 03 Jul 2024 00:56:05 +0000
{{FULLDATE|type=iso-8601}}
2024-07-03T00:56:05+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.