DateIntervalToArrayTransformer
DateIntervalToArrayTransformer
class DateIntervalToArrayTransformer implements DataTransformerInterface
Transforms between a normalized date interval and an interval string/array.
Constants
YEARS | |
MONTHS | |
DAYS | |
HOURS | |
MINUTES | |
SECONDS | |
INVERT |
Methods
__construct(array $fields = null, bool $pad = false) |