PHP 8.5.0 Alpha 2 available for testing

IntlCalendar::before

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

IntlCalendar::beforeVerifica si el objeto tiempo está en el pasado en relación con el objeto proporcionado

Descripción

Estilo orientado a objetos

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

Estilo procedimental

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

Verifica si el objeto tiempo está en el pasado en relación con el objeto proporcionado.

Parámetros

calendar

An IntlCalendar instance.

other

El calendario para el cual el tiempo será verificado en relación con el tiempo del objeto principal.

Valores devueltos

Devuelve true si el objeto tiempo actual está en el pasado en relación con el tiempo del argumento calendar. Devuelve false en caso contrario.

On failure false is also returned. To detect error conditions use intl_get_error_code(), or set up Intl to throw exceptions.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top