update : 2015.11.03
php.shukuma.com검색:
|
IntlCalendar::get(PHP 5.5.0, PECL >= 3.0.0a1) IntlCalendar::get — Get the value for a field 설명객체 기반 형식
public int IntlCalendar::get
( int
$field
)절차식 형식
int intlcal_get
( IntlCalendar>
$cal
, int $field
)Gets the value for a specific field. 인수
반환값An integer with the value of the time field. 예제
Example #1 IntlCalendar::get()
<?php 위 예제의 출력: string(23) "Jul 1, 2013, 4:44:44 AM" 0 (FIELD_ERA) 1 1 (FIELD_YEAR) 2013 2 (FIELD_MONTH) 6 3 (FIELD_WEEK_OF_YEAR) 27 4 (FIELD_WEEK_OF_MONTH) 1 5 (FIELD_DAY_OF_MONTH) 1 6 (FIELD_DAY_OF_YEAR) 182 7 (FIELD_DAY_OF_WEEK) 2 8 (FIELD_DAY_OF_WEEK_IN_MONTH) 1 9 (FIELD_AM_PM) 0 10 (FIELD_HOUR) 4 11 (FIELD_HOUR_OF_DAY) 4 12 (FIELD_MINUTE) 44 13 (FIELD_SECOND) 44 14 (FIELD_MILLISECOND) 551 15 (FIELD_ZONE_OFFSET) 0 16 (FIELD_DST_OFFSET) 3600000 17 (FIELD_YEAR_WOY) 2013 18 (FIELD_DOW_LOCAL) 2 19 (FIELD_EXTENDED_YEAR) 2013 20 (FIELD_JULIAN_DAY) 2456475 21 (FIELD_MILLISECONDS_IN_DAY) 17084551 22 (FIELD_IS_LEAP_MONTH) 0 |