Skip to content

Instantly share code, notes, and snippets.

View 89gsc's full-sized avatar

... 89gsc

View GitHub Profile
<?php
/**
* FuzzyDateParser is meerly a "convinience" wrapper around date_parse
* functionality from ext/date/lib/timelib code (which does all the
* scanning and other "fuzzy" guessing work).
*
* @see http://www.php.net/manual/en/function.date-parse.php
* @see http://stackoverflow.com/questions/15350309/heuristic-fuzzy-date-extraction-from-the-string
*
* by Yauhen Yakimovich, 2013