Korin API

Spellings
in package

FinalYes

The 5.5.1 spelling of 5.5.5 values (for Rule\Values): ages without the space after < and > ("< 1y" → "<1y"), BCE and BC as B.C. ("1000 BCE" → "1000 B.C."). Null when there is none: 5.5.1 has no day and month without a year ("5 MAR"). years() takes back the zeroes 5.5.5 puts before short years, for every date.

Table of Contents

Methods

respell()  : string|null
years()  : string
A date without the leading zeroes of its years ("5 JAN 050" → "5 JAN 50"); days have none in 5.5.5.

Methods

respell()

public static respell(string $grammar, string $value) : string|null
Parameters
$grammar : string
$value : string
Return values
string|null

years()

A date without the leading zeroes of its years ("5 JAN 050" → "5 JAN 50"); days have none in 5.5.5.

public static years(string $value) : string
Parameters
$value : string
Return values
string
On this page

Search results