EC-CUBE
Public メソッド
クラス Calendar_Engine_PearDate

Public メソッド

 stampCollection ($stamp)
 stampToYear ($stamp)
 stampToMonth ($stamp)
 stampToDay ($stamp)
 stampToHour ($stamp)
 stampToMinute ($stamp)
 stampToSecond ($stamp)
 dateToStamp ($y, $m, $d, $h=0, $i=0, $s=0)
 adjustDate (&$y, &$m, &$d, &$h, &$i, &$s)
 getMaxYears ()
 getMinYears ()
 getMonthsInYear ($y=null)
 getDaysInMonth ($y, $m)
 getFirstDayInMonth ($y, $m)
 getDaysInWeek ($y=NULL, $m=NULL, $d=NULL)
 getWeekNInYear ($y, $m, $d)
 getWeekNInMonth ($y, $m, $d, $firstDay=1)
 getWeeksInMonth ($y, $m, $firstDay=1)
 getDayOfWeek ($y, $m, $d)
 getWeekDays ($y=NULL, $m=NULL, $d=NULL)
 getFirstDayOfWeek ($y=NULL, $m=NULL, $d=NULL)
 getHoursInDay ($y=null, $m=null, $d=null)
 getMinutesInHour ($y=null, $m=null, $d=null, $h=null)
 getSecondsInMinute ($y=null, $m=null, $d=null, $h=null, $i=null)

関数

adjustDate ( &$  y,
&$  m,
&$  d,
&$  h,
&$  i,
&$  s 
)

Set the correct date values (useful for math operations on dates)

引数:
intyear (2003)
intmonth (9)
intday (13)
inthour (13)
intminute (34)
intsecond (53) protected
dateToStamp ( y,
m,
d,
h = 0,
i = 0,
s = 0 
)

Returns a iso-8601 datetime

引数:
intyear (2003)
intmonth (9)
intday (13)
inthour (13)
intminute (34)
intsecond (53)
戻り値:
string iso-8601 datetime protected
getDayOfWeek ( y,
m,
d 
)

Returns the number of the day of the week (0=sunday, 1=monday...)

引数:
intyear (2003)
intmonth (9)
intday (4)
戻り値:
int weekday number protected
getDaysInMonth ( y,
m 
)

Returns the number of days in a month, given year and month

引数:
intyear (2003)
intmonth (9)
戻り値:
int days in month protected
getDaysInWeek ( y = NULL,
m = NULL,
d = NULL 
)

Returns the number of days in a week

引数:
intyear (2003)
intmonth (9)
intday (4)
戻り値:
int (7) protected
getFirstDayInMonth ( y,
m 
)

Returns numeric representation of the day of the week in a month, given year and month

引数:
intyear (2003)
intmonth (9)
戻り値:
int from 0 to 7 protected
getFirstDayOfWeek ( y = NULL,
m = NULL,
d = NULL 
)

Returns the default first day of the week

引数:
intyear (2003)
intmonth (9)
intday (4)
戻り値:
int (default 1 = Monday) protected
getHoursInDay ( y = null,
m = null,
d = null 
)

Returns the number of hours in a day

戻り値:
int (24) protected

The upper limit on years that the Calendar Engine can work with

戻り値:
int 9999 protected
getMinutesInHour ( y = null,
m = null,
d = null,
h = null 
)

Returns the number of minutes in an hour

戻り値:
int (60) protected

The lower limit on years that the Calendar Engine can work with

戻り値:
int 0 protected
getMonthsInYear ( y = null)

Returns the number of months in a year

戻り値:
int (12) protected
getSecondsInMinute ( y = null,
m = null,
d = null,
h = null,
i = null 
)

Returns the number of seconds in a minutes

戻り値:
int (60) protected
getWeekDays ( y = NULL,
m = NULL,
d = NULL 
)

Returns a list of integer days of the week beginning 0

引数:
intyear (2003)
intmonth (9)
intday (4)
戻り値:
array (0, 1, 2, 3, 4, 5, 6) 1 = Monday protected
getWeekNInMonth ( y,
m,
d,
firstDay = 1 
)

Returns the number of the week in the month, given a date

引数:
intyear (2003)
intmonth (9)
intday (4)
intfirst day of the week (default: monday)
戻り値:
int week number protected
getWeekNInYear ( y,
m,
d 
)

Returns the number of the week in the year (ISO-8601), given a date

引数:
intyear (2003)
intmonth (9)
intday (4)
戻り値:
int week number protected
getWeeksInMonth ( y,
m,
firstDay = 1 
)

Returns the number of weeks in the month

引数:
intyear (2003)
intmonth (9)
intfirst day of the week (default: monday)
戻り値:
int weeks number protected
stampCollection ( stamp)

Makes sure a given timestamp is only ever parsed once Uses a static variable to prevent date() being used twice for a date which is already known

引数:
mixedAny timestamp format recognized by Pear::Date
戻り値:
object Pear::Date object protected
stampToDay ( stamp)

Returns a numeric day given a iso-8601 datetime

引数:
stringiso-8601 datetime (YYYY-MM-DD HH:MM:SS)
戻り値:
int day (e.g. 15) protected
stampToHour ( stamp)

Returns a numeric hour given a iso-8601 datetime

引数:
stringiso-8601 datetime (YYYY-MM-DD HH:MM:SS)
戻り値:
int hour (e.g. 13) protected
stampToMinute ( stamp)

Returns a numeric minute given a iso-8601 datetime

引数:
stringiso-8601 datetime (YYYY-MM-DD HH:MM:SS)
戻り値:
int minute (e.g. 34) protected
stampToMonth ( stamp)

Returns a numeric month given a iso-8601 datetime

引数:
stringiso-8601 datetime (YYYY-MM-DD HH:MM:SS)
戻り値:
int month (e.g. 9) protected
stampToSecond ( stamp)

Returns a numeric second given a iso-8601 datetime

引数:
stringiso-8601 datetime (YYYY-MM-DD HH:MM:SS)
戻り値:
int second (e.g. 51) protected
stampToYear ( stamp)

Returns a numeric year given a iso-8601 datetime

引数:
stringiso-8601 datetime (YYYY-MM-DD HH:MM:SS)
戻り値:
int year (e.g. 2003) protected

このクラスの説明は次のファイルから生成されました:
 全て データ構造 ネームスペース 関数 変数