class.str2time.php [example] [code]

class.str2time.php is a class of functions that is designed to make it easy to convert different date formats into the Epoch time (seconds since Jan 1, 1970).

Example:


$s = new str2time;
print $s->convert("01/01/01");

That's it!

formats that it can convert:

	"mm/dd/yy"
	"mm-dd-yy"
	"mm/dd/yyyy"
	"yyyy-mm-dd hh:mm:ss" (optional am/pm)
	"yyyy/mm/dd hh:mm:ss" (optional am/pm)
	HTTP Time ("Thu, 04 Nov 1999 00:00:00 GMT")


© Copyright 1997-2008 The Hans Anderson Corporation. (TM) All Rights Reserved.