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 Link to comment https://forums.phpfreaks.com/topic/129939-solved-get-time/ Share on other sites More sharing options...
ayok Posted October 24, 2008 Author Share Posted October 24, 2008 Nevermind, I found it! Thanks, ayok Link to comment https://forums.phpfreaks.com/topic/129939-solved-get-time/#findComment-673618 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> Link to comment https://forums.phpfreaks.com/topic/129939-solved-get-time/#findComment-673748 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 Link to comment https://forums.phpfreaks.com/topic/129939-solved-get-time/#findComment-673751 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 Link to comment https://forums.phpfreaks.com/topic/129939-solved-get-time/#findComment-673815 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 Link to comment https://forums.phpfreaks.com/topic/129939-solved-get-time/#findComment-674668 Share on other sites More sharing options...
alexweber15 Posted October 25, 2008 Share Posted October 25, 2008 Link to comment https://forums.phpfreaks.com/topic/129939-solved-get-time/#findComment-674694 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.