Finder::date()

Finder|SplFileInfo[] date(string $date)

Adds tests for file dates (last modified).

The date must be something that strtotime() is able to parse:

$finder->date('since yesterday'); $finder->date('until 2 days ago'); $finder->date('> now - 2 hours'); $finder->date('>= 2005-10-15');

Parameters

string $date A date range string

Return Value

Finder|SplFileInfo[] The current Finder instance

See also

strtotime
DateRangeFilterIterator
DateComparator
doc_Symfony
2016-10-28 06:16:51
Comments
Leave a Comment

Please login to continue.