IntlCalendar::before

(PHP 5 >= 5.5.0, PHP 7, PECL >= 3.0.0a1)

IntlCalendar::beforeWhether this objectʼs time is before that of the passed object

说明

面向对象风格

public IntlCalendar::before ( IntlCalendar $other ) : bool

过程化风格

intlcal_before ( IntlCalendar $cal , IntlCalendar $other ) : bool

Returns whether this objectʼs time precedes the argumentʼs time.

参数

cal

The IntlCalendar resource.

other

The calendar whose time will be checked against the primary objectʼs time.

返回值

Returns TRUE if this objectʼs current time is before that of the calendar argumentʼs time. Returns FALSE otherwise. Also returns FALSE on failure. You can use exceptions or intl_get_error_code() to detect error conditions.

相关文章
php ibm db2 函数 returns an object with properties that describe the db2 database clientphp expect 函数 waits until the output from a process matches one of the patterns a specified time period has passed or an eof is seenphp intlcalendar whether this objectʼs time is after that of the passed objectphp intlcalendar whether this objectʼs time is before that of the passed objectphp intlcalendar calculate difference between given time and this objectʼs timephp intlcalendar the maximum value for a field considering the objectʼs current timephp intlcalendar the minimum value for a field considering the objectʼs current timephp intlcalendar tell whether a day is a weekday weekend or a day that has a transition between the twophp intlcalendar get behavior for handling repeating wall timephp intlcalendar get behavior for handling skipped wall timephp intlcalendar get time currently represented by the objectphp intlcalendar whether the objectʼs time is in daylight savings timephp intlcalendar whether another calendar is equal but for a different timephp intlcalendar whether date/time interpretation is in lenient modephp intlcalendar whether a certain date/time is in the weekendphp intlcalendar set whether date/time interpretation is to be lenientphp intlcalendar set the calendar time in milliseconds since the epochphp recursivearrayiterator returns whether current entry is an array or an objectphp reflectionparameter returns whether this parameter can be passed by valuephp weakref checks whether the object referenced still exists
关注编程学问公众号