Great tool to convert unix timestamps

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
soulphp
Forum Newbie
Posts: 1
Joined: Sun Feb 13, 2011 11:40 am

Great tool to convert unix timestamps

Post 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.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Great tool to convert unix timestamps

Post by John Cartwright »

Whats the difference between your site and strtotime()?
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Great tool to convert unix timestamps

Post by Benjamin »

Or date() for that matter.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Great tool to convert unix timestamps

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Great tool to convert unix timestamps

Post 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.
Post Reply