src/Codeception/Module/WPFilesystem.php
protected function buildDateFrag($date)
    {
        $timestamp = is_numeric($date) ? $date : strtotime($date);
        $Y = date('Y', $timestamp);
        $m = date('m', $timestamp);
        $dateFrag = $Y . DIRECTORY_SEPARATOR . $m;

        return $dateFrag;
    }
protected function buildDateFrag($date)
    {
        $timestamp = is_numeric($date) ? $date : strtotime($date);
        $Y = date('Y', $timestamp);
        $m = date('m', $timestamp);
        $dateFrag = $Y . DIRECTORY_SEPARATOR . $m;

        return $dateFrag;
    }
protected function buildDateFrag ( $ date ) { $ timestamp = is_numeric ( $ date ) ? $ date : strtotime ( $ date ) ; $ Y = date ( 'Y' , $ timestamp ) ; $ m = date ( 'm' , $ timestamp ) ; $ dateFrag = $ Y . DIRECTORY_SEPARATOR . $ m ; return $ dateFrag ; }
Builds the additional path fragment depending on the date.

@param string|int $date A string compatible with `strtotime` or a Unix timestamp.

@return string The relative path with the date path appended, if needed.
Builds the additional path fragment depending on the date .