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.
Examples:
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.
Requirements:
- PHP 5.0 or higher
More popular Date & Time
- Ultimate PHP Date Time Script 1.0.0 (2 years, 9 months 14 days ago)
- Display human friendly relative dates and times 0.9 (2 years, 3 months 22 days ago)
- PHP dateRange Class 1.0 (2 years, 9 months 14 days ago)
- Opening hours 2.0 (2 years, 9 months 14 days ago)
- CountDown PHP Script (2 years, 5 months 10 days ago)
Listing Files

text2timestamp.php- 7.3 KB
- 12/08/2010 03:53:47

example.php- 613 Bytes
- 12/08/2010 03:53:47
- FREE MySQL Cloud Database Super Simple, Zero-Management MySQL Cloud DB. Use It FREE!
- Pinterest clone Start your own pin board social network today. Get Pintastic and start your own pinterest clone network.
- MYRE Real Estate Software Professional Real Estate solutions by MYREPHP PROGRAMMING!
