src/Interval.php
public function getStepFormat()
    {
        if ($this->lang == 'en') {
            switch ($this->step) {
                case self::$YEARLY:
                    return 'Y';
                    break;
                case self::$MONTHLY:
                    return 'Y-m';
                    break;
                case self::$DAILY:
                    return 'Y-m-d';
                    break;
                case self::$HOURLY:
                    return 'Y-m-d H:00';
                    break;
            }
        } elseif ($this->lang == 'fr') {
            switch ($this->step) {
                case self::$YEARLY:
                    return 'Y';
                    break;
                case self::$MONTHLY:
                    return 'm/Y';
                    break;
                case self::$DAILY:
                    return 'd/m/Y';
                    break;
                case self::$HOURLY:
                    return 'd/m/Y H:00';
                    break;
            }
        }

        return false;
    }
public function getStepFormat()
    {
        if ($this->lang == 'en') {
            switch ($this->step) {
                case self::$YEARLY:
                    return 'Y';
                    break;
                case self::$MONTHLY:
                    return 'Y-m';
                    break;
                case self::$DAILY:
                    return 'Y-m-d';
                    break;
                case self::$HOURLY:
                    return 'Y-m-d H:00';
                    break;
            }
        } elseif ($this->lang == 'fr') {
            switch ($this->step) {
                case self::$YEARLY:
                    return 'Y';
                    break;
                case self::$MONTHLY:
                    return 'm/Y';
                    break;
                case self::$DAILY:
                    return 'd/m/Y';
                    break;
                case self::$HOURLY:
                    return 'd/m/Y H:00';
                    break;
            }
        }

        return false;
    }
public function getStepFormat ( ) { if ( $ this -> lang == 'en' ) { switch ( $ this -> step ) { case self :: $ YEARLY : return 'Y' ; break ; case self :: $ MONTHLY : return 'Y-m' ; break ; case self :: $ DAILY : return 'Y-m-d' ; break ; case self :: $ HOURLY : return 'Y-m-d H:00' ; break ; } } elseif ( $ this -> lang == 'fr' ) { switch ( $ this -> step ) { case self :: $ YEARLY : return 'Y' ; break ; case self :: $ MONTHLY : return 'm/Y' ; break ; case self :: $ DAILY : return 'd/m/Y' ; break ; case self :: $ HOURLY : return 'd/m/Y H:00' ; break ; } } return false ; }
Get the step index format of the step precision

@return array
Get the step index format of the step precision