様々な日付や時間を自動表示するプラグイン

[PR]さくらのレンタルサーバ ライト
様々な日付や時間を自動表示するエクステンションSimple Date/Time PluginSMILEYS_PLGを紹介します。以下がデモです。

 
今日は、今年が始まってから、210日目です。
 

上のデモのように表示するには、以下の表のいちばん上の表記をします。その他にもたくさんの表記方法があります。

%currentday%
Day of the year  - Digit version
(0 - 365)
%yy%
Current Year  - Short version
(85, 99, 01, 08)
%yyyy%
Current Year  - Long version
(1985, 1999, 2001, 2008)
%ly%
Current Year  - Leap Year
(1 = Yes, 0 = No)
%dd%
Day of the month - No Leading Zeros
(1 - 31)
%DD%
Day of the month - Leading Zeros
(01 - 31)
%month%
Month of the year - Short Version
(Jan - Dec)
%MONTH%
Month of the year - Long Version
(January - December)
%mm%
Month of the year - No Leading Zeros
(1 - 12)
%MM%
Month of the year - Leading Zeros
(01 - 12)
%daysinmonth%
Days in current month - Digit Version
(28 - 31)
%week#%
Week of the year - Digit version
(10, 20, 42)
%day%
Day of the week  - Short version
(Mon - Sun)
%DAY%
Day of the week  - Long version
(Sunday - Saturday)
%day#%
Day of the week  - Digit version
(1 - 7)
%daysuffix%
Day of the week  - Suffix
(st, nd, rd, th)
Time Related
%ampm%
Current Time  - Lowercase AM/PM
(am or pm)
%AMPM%
Current Time  - Uppercase AM/PM
(AM or PM)
%swatch%
Current Time  - Swatch Internet Time
(000 - 999)
%12hh%
Current Time  - 12-hour No Zeros
(1 - 12)
%12HH%
Current Time  - 12-hour Leading Zeros
(01 - 12)
%24hh%
Current Time  - 24-hour No Zeros
(0 - 23)
%24HH%
Current Time  - 24-hour Leading Zeros
(01 - 23)
%min%
Current Time  - Minutes With Zeros
(00 - 59)
%sec%
Current Time  - Seconds With Zeros
(00 - 59)
%micro%
Current Time  - Microseconds
(12345)
Timezone Related
%tz%
Current Timezone  - Short Version
(GST, GMT, UTC)
%TZ%
Current Timezone  - Long Version
(Atlantic/Azores)
%daylightsavings%
Current Timezone  - Daylight Savings
(1 = Yes, 0 = No)
%tzoffset%
Current Timezone  - Offset In Seconds
(12345)
%gmt%
Current Timezone  - GMT Offset No ':'
(+1000)
%GMT%
Current Timezone  - GMT Offset With ':'
(+10:00)

 

私も使ってますBBexcite光ブロードバンド

Joomlaなサイト