PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Nov 13, 2018 12:49 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Feb 13, 2011 12:54 pm 
Offline
Forum Newbie

Joined: Sun Feb 13, 2011 12:40 pm
Posts: 1
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.


Top
 Profile  
 
PostPosted: Sun Feb 13, 2011 3:28 pm 
Offline
Site Admin
User avatar

Joined: Tue Dec 23, 2003 3:10 am
Posts: 11470
Location: Toronto
Whats the difference between your site and strtotime()?


Top
 Profile  
 
PostPosted: Sun Feb 13, 2011 3:39 pm 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6887
Or date() for that matter.

_________________
Image


Top
 Profile  
 
PostPosted: Mon Feb 14, 2011 11:19 am 
Offline
Briney Mod
User avatar

Joined: Mon Jan 19, 2004 7:11 pm
Posts: 6445
Location: 53.01N x 112.48W
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.


Top
 Profile  
 
PostPosted: Wed Feb 16, 2011 11:09 pm 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
@pickle
Syntax: [ Download ] [ Hide ]
$ 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

Apologies to those who don't have a terminal one keystroke away :twisted:

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group