ayok Posted October 24, 2008 Share Posted October 24, 2008 Hi, I've been trying to find the numbers of time() from a date. For example: if we echo a time(), then we'll get numbers like 1203432432 which show the time today from 1 jan 1970. But how can I find those numbers in other way around from an existing date like 24 October 2008? Is it possible? thanks, ayok Quote Link to comment Share on other sites More sharing options...
ayok Posted October 24, 2008 Author Share Posted October 24, 2008 Nevermind, I found it! Thanks, ayok Quote Link to comment Share on other sites More sharing options...
alexweber15 Posted October 24, 2008 Share Posted October 24, 2008 <nazi mode> awesome dude! but please post your solution so that others can learn from it too! and also mark the topic as solved so people who are willing to answer don't stop by only to find out its already been resolved! </nazi mode> Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted October 24, 2008 Share Posted October 24, 2008 He probably found the strtotime() function in the php manual - http://us2.php.net/strtotime Quote Link to comment Share on other sites More sharing options...
alexweber15 Posted October 24, 2008 Share Posted October 24, 2008 He probably found the strtotime() function in the php manual - http://us2.php.net/strtotime probably yeah! if he had googled his question he would have found it, i was just trying to help the overall dynamic as in if you figure it out and post the solution for the record, instead of saying "nevermind i got it", and then mark the topic as solved it'll help make the forums more efficient. but if this is frowned upon or restricted to mods then my bad Quote Link to comment Share on other sites More sharing options...
ayok Posted October 25, 2008 Author Share Posted October 25, 2008 Sorry Alex, I just thought it was a stupid question.. But it's right that I was looking for strtotime(). greets, ayok Quote Link to comment Share on other sites More sharing options...
alexweber15 Posted October 25, 2008 Share Posted October 25, 2008 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.