Skip to content

Kirby 6.0.1

Date::stepConfig()

Normalizes the step configuration array for rounding

Date::stepConfig(array|string|int|null $input = null, array $default = ['size' => 1, 'unit' => 'day']): array

Parameters

Name Type Default Description
$input arrayorstringorintornull null Full array with size and/or unit keys, unit string, size int or null for the default
$default array ['size' => 1, 'unit' => 'day'] Default values to use if one or both values are not provided

Return type

array

Parent class

Kirby\Toolkit\Date