Time
extends Enum
in package
Contains enumerable time values
Table of Contents
Constants
- DAY = 86400
- DAYS = 86400
- HOUR = 3600
- HOURS = 3600
- MINUTE = 60
- MINUTES = 60
- MONTH = 2592000
- MONTHS = 2592000
- SECOND = 1
- SECONDS = 1
- WEEK = 604800
- WEEKS = 604800
- YEAR = 31557600
- YEARS = 31557600
Properties
- $cache : array<string|int, mixed>
Methods
- keys() : array<string|int, mixed>
- Returns the names (or keys) of all of constants in the enum
- values() : array<string|int, mixed>
- Return the names and values of all the constants in the enum
Constants
DAY
public
mixed
DAY
= 86400
DAYS
public
mixed
DAYS
= 86400
HOUR
public
mixed
HOUR
= 3600
HOURS
public
mixed
HOURS
= 3600
MINUTE
public
mixed
MINUTE
= 60
MINUTES
public
mixed
MINUTES
= 60
MONTH
public
mixed
MONTH
= 2592000
MONTHS
public
mixed
MONTHS
= 2592000
SECOND
public
mixed
SECOND
= 1
SECONDS
public
mixed
SECONDS
= 1
WEEK
public
mixed
WEEK
= 604800
WEEKS
public
mixed
WEEKS
= 604800
YEAR
public
mixed
YEAR
= 31557600
YEARS
public
mixed
YEARS
= 31557600
Properties
$cache
protected
static array<string|int, mixed>
$cache
= array()
A cache of all enum values to increase performance
Methods
keys()
Returns the names (or keys) of all of constants in the enum
public
static keys() : array<string|int, mixed>
Return values
array<string|int, mixed>values()
Return the names and values of all the constants in the enum
public
static values() : array<string|int, mixed>