SPHPlayground API
SPHPlayground
sphplayground sphplayground

Calendar units

CalendarUnit has two enumeration implementations. These Enumerations localize weekday and month names. Implemented calendar unit instances can translate its name to various language by using IntlDateFormatter.

The Weekday enumeration

Weekday enumeration is used to specify an association between a weekday name and a weekday number.

Synopsis

enum Weekday: int

The Month enumeration

Month enumeration is used to specify an association between month name and a month number.

Synopsis

enum Month: int