Login   Register  
PHP Classes
elePHPant
Icontem

Text to Timestamp: Convert English expressions into time values

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2009-10-01 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 366 This week: 1All time: 6,169 This week: 1,141Up
Version License PHP version Categories  
time-when 1.0BSD License5.0PHP 5, Time and Date, Text processing
Description Author  

This class can be used to convert English expressions into time values.

It can parse a given string with a relative time expression in English like "just a moment ago", "1 day ago" or "6 hours ago", into a time value.

Innovation Award  
PHP Programming Innovation award nominee
October 2009
Number 8
The PHP function strtotime() can convert a text string in several time formats into a timestamp value.

This class goes farther by analyzing and converting text strings with relative time expressions in English.

Manuel Lemos
Picture of Martin
Name: Martin <contact>
Classes: 3 packages by
Country: Denmark Denmark
Age: 32
All time rank: 204915 in Denmark Denmark
Week rank: 923 Up5 in Denmark Denmark Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imagedocumentation (1 file)
Accessible without login Plain text file example.php Example Example
Plain text file Time_When.php Class Source

  Files folder image Files  /  documentation  
File Role Description
  Accessible without login Plain text file documentation.txt Data Link to API

 Version Control Unique User Downloads Download Rankings  
 0%Total:366All time:6,169
 This week:1This week:1,141Up