Page 1 of 1

Great tool to convert unix timestamps

Posted: Sun Feb 13, 2011 11:54 am
by soulphp
Hey guys, I just wanted to share a little utility I created for developers to convert Unix timestamps to dates and vice versa. All the other similar sites out there are so cluttered and all around suck. The url is:
http://www.unixstamp.com

It accepts input in any format:
unixstamp.com/12345678
unixstamp.com/Feb+17,2010
unixstamp.com/2010/12/31

Hope you find it useful, drop me a line at the email on the site if you have any comments or suggestions.

Re: Great tool to convert unix timestamps

Posted: Sun Feb 13, 2011 2:28 pm
by John Cartwright
Whats the difference between your site and strtotime()?

Re: Great tool to convert unix timestamps

Posted: Sun Feb 13, 2011 2:39 pm
by Benjamin
Or date() for that matter.

Re: Great tool to convert unix timestamps

Posted: Mon Feb 14, 2011 10:19 am
by pickle
There is no difference really. I've built something like this for myself & it's quite useful if you're getting database results that are UNIX timestamped, or you're debugging by dumping a UNIX timestamp & you want to see when that is in human readable terms.

Re: Great tool to convert unix timestamps

Posted: Wed Feb 16, 2011 10:09 pm
by Jonah Bron
@pickle
[text]$ php -a
php > echo strtotime('February 17, 2011 4:04:59 am');
1297944299
php > echo date('r', 1297944299);
Thu, 17 Feb 2011 04:04:59 -0800[/text]
Apologies to those who don't have a terminal one keystroke away :twisted:

But seriously, a neat tool, very slick looking. Bookmarked.