update : 2015.11.03
php.shukuma.com검색:
|
IntlCalendar::set(PHP 5.5.0, PECL >= 3.0.0a1) IntlCalendar::set — Set a time field or several common fields at once 설명객체 기반 형식
public bool IntlCalendar::set
( int
$field
, int $value
)
public bool IntlCalendar::set
( int
$year
, int $month
[, int $dayOfMonth = NULL
[, int $hour = NULL
[, int $minute = NULL
[, int $second = NULL
]]]] )절차식 형식
bool intlcal_set
( IntlCalendar
$cal
, int $year
, int $month
[, int $dayOfMonth = NULL
[, int $hour = NULL
[, int $minute = NULL
[, int $second = NULL
]]]] )Sets either a specific field to the given value, or sets at once several common fields. The range of values that are accepted depend on whether the calendar is using the lenient mode. For fields that conflict, the fields that are set later have priority. This method cannot be called with exactly four arguments. 인수
반환값
Returns 예제
Example #1 IntlCalendar::set()
<?php 위 예제의 출력: string(20) "01/07/2011, 00:00:00" string(20) "01/07/2012, 00:00:00" 참고
|