PHP Class MyBuilder\Cronos\Formatter\Time

field allowed values ----- -------------- minute 0-59 hour 0-23 day of month 1-31 month 1-12 (or names, see below) day of week 0-7 (0 or 7 is Sun, or use names) Ranges of numbers are allowed. Ranges are two numbers separated with a hyphen. The specified range is inclusive. For example, 8-11 for an hours'' entry specifies execution at hours 8, 9, 10 and 11. Lists are allowed. A list is a set of numbers (or ranges) separated by commas. Examples: 1,2,5,9'', ``0-4,8-12''.
Show file Open project: mybuilder/cronos

Public Methods

Method Description
format ( ) : string
setDayOfMonth ( string $value )
setDayOfWeek ( string $value )
setHour ( string $value )
setMinute ( string $value )
setMonth ( string $value )

Private Methods

Method Description
parse ( string $value ) : string

Method Details

format() public method

public format ( ) : string
return string

setDayOfMonth() public method

public setDayOfMonth ( string $value )
$value string 0-31 or a list or range

setDayOfWeek() public method

public setDayOfWeek ( string $value )
$value string 0-7 (0 or 7 is Sun, or use names) or a list or range

setHour() public method

public setHour ( string $value )
$value string 0-23 or a list or range

setMinute() public method

public setMinute ( string $value )
$value string 0-59 or a list or range

setMonth() public method

public setMonth ( string $value )
$value string 0-12 or a list or range