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.
Great tool to convert unix timestamps
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: Great tool to convert unix timestamps
Whats the difference between your site and strtotime()?
Re: Great tool to convert unix timestamps
Or date() for that matter.
Re: Great tool to convert unix timestamps
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.
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: Great tool to convert unix timestamps
@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
But seriously, a neat tool, very slick looking. Bookmarked.
[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
But seriously, a neat tool, very slick looking. Bookmarked.