protected function date($file)
    {
        $file_contents = $this->sonic->app['filesystem']->parse($file['path']);
        if (isset($file_contents['meta']['date']) === FALSE) {
            return NULL;
        }
        return new \DateTime($file_contents['meta']['date']);
    }
protected function date($file)
    {
        $file_contents = $this->sonic->app['filesystem']->parse($file['path']);
        if (isset($file_contents['meta']['date']) === FALSE) {
            return NULL;
        }
        return new \DateTime($file_contents['meta']['date']);
    }
protected function date ( $ file ) { $ file_contents = $ this -> sonic -> app [ 'filesystem' ] -> parse ( $ file [ 'path' ] ) ; if ( isset ( $ file_contents [ 'meta' ] [ 'date' ] ) === FALSE ) { return NULL ; } return new \ DateTime ( $ file_contents [ 'meta' ] [ 'date' ] ) ; }
Gets a date from a file

@param  string $file
@return \DateTime|NULL
Gets a date from a file