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

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

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

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

%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なサイト