CloudCastle CurrencyConverter

DateGuard
in package

FinalYes

Проверка календарной даты ISO (YYYY-MM-DD) без обращений к статическим часам.

Table of Contents

Properties

$days  : array<int, int>

Methods

assertIso()  : void
isLeap()  : bool
number()  : int

Properties

$days

private array<int, int> $days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]

Methods

isLeap()

private isLeap(int $year) : bool
Parameters
$year : int
Return values
bool

number()

private number(string $piece) : int
Parameters
$piece : string
Return values
int
On this page

Search results