1993. Class

1993.1. Zend\Validator\DateStep

1993.1.1. Methods

1993.1.1.1. __construct

__construct()

Set default options for this instance

Parameters:array

1993.1.1.2. setBaseValue

setBaseValue()

Sets the base value from which the step should be computed

Parameters:string|integer|DateTime
Return type:DateStep

1993.1.1.3. getBaseValue

getBaseValue()

Returns the base value from which the step should be computed

Return type:string|integer|DateTime

1993.1.1.4. setStep

setStep()

Sets the step date interval

Parameters:DateInterval
Return type:DateStep

1993.1.1.5. getStep

getStep()

Returns the step date interval

Return type:DateInterval

1993.1.1.6. getTimezone

getTimezone()

Returns the timezone option

Return type:DateTimeZone

1993.1.1.7. setTimezone

setTimezone()

Sets the timezone option

Parameters:DateTimeZone
Return type:DateStep

1993.1.1.8. convertToDateTime

convertToDateTime()

Converts an int or string to a DateTime object

Parameters:string|integer|DateTime
Return type:DateTime
Throws :ExceptionInvalidArgumentException

1993.1.1.9. isValid

isValid()

Returns true if a date is within a valid step

Parameters:string|integer|DateTime
Return type:bool
Throws :ExceptionInvalidArgumentException

1993.1.2. Constants

1993.1.2.1. NOT_STEP