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

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)
 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)

関数

dateToStamp ( y,
m,
d,
h = 0,
i = 0,
s = 0 
)

Returns a timestamp

引数:
intyear (2003)
intmonth (9)
intday (13)
inthour (13)
intminute (34)
intsecond (53)
戻り値:
int Unix timestamp 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 6 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 (2037) 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 (1970 if it's Windows and 1902 for all other OSs) 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

 array (
  [0] => year (e.g 2003),
  [1] => month (e.g 9),
  [2] => day (e.g 6),
  [3] => hour (e.g 14),
  [4] => minute (e.g 34),
  [5] => second (e.g 45),
  [6] => num days in month (e.g. 31),
  [7] => week in year (e.g. 50),
  [8] => day in week (e.g. 0 for Sunday)
 )
 

Uses a static variable to prevent date() being used twice for a date which is already known

引数:
intUnix timestamp
戻り値:
array protected
stampToDay ( stamp)

Returns a numeric day given a timestamp

引数:
intUnix timestamp
戻り値:
int day (e.g. 15) protected
stampToHour ( stamp)

Returns a numeric hour given a timestamp

引数:
intUnix timestamp
戻り値:
int hour (e.g. 13) protected
stampToMinute ( stamp)

Returns a numeric minute given a timestamp

引数:
intUnix timestamp
戻り値:
int minute (e.g. 34) protected
stampToMonth ( stamp)

Returns a numeric month given a timestamp

引数:
intUnix timestamp
戻り値:
int month (e.g. 9) protected
stampToSecond ( stamp)

Returns a numeric second given a timestamp

引数:
intUnix timestamp
戻り値:
int second (e.g. 51) protected
stampToYear ( stamp)

Returns a numeric year given a timestamp

引数:
intUnix timestamp
戻り値:
int year (e.g. 2003) protected

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