text2timestamp 1.0

This is a PHP script can be used to parse and extract times from English text. It takes a string to analyze and recognize time based expressions. More than 20 time format variations can be recognized. The script extract the time mentioned in the text as well the remaining action text that is related to the time expression.

1. 6pm call mom
2. 6:30pm call mom
3. 6:19p call mom
4. 6p call mom
5. 6am call mom
6. 6a call mom
7. 2 hours call mom
8. 2 hrs call mom
9. 30 minutes call mom
10. 30 mins call mom
11. today at 6pm call mom – the next 6pm, if 6pm has already passed.
12. Saturday 6pm call mom – The next Saturday, if Saturday has already passed
13. tomorrow at 6pm – calculates tomorrow regardless if it’s after 6pm or not.

- PHP 5.0 or higher

License type: Free for non-commercial purposes
Date added: 5 years, 3 months 4 days ago | Last updated: 5 years, 2 months 26 days ago

More popular Date & Time

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

Hot Scripts