RON_ron Posted November 26, 2010 Share Posted November 26, 2010 I'm not sure if this is the place to ask this question, but please advise <?php echo "time=" . time(); ?> does the time change when viewing in other countries? E.g. Is echo the same when viewed in China, US, New Zealand? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/219871-server-time/ Share on other sites More sharing options...
Pikachu2000 Posted November 26, 2010 Share Posted November 26, 2010 Returns the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT). Therefore, it always returns GMT. Quote Link to comment https://forums.phpfreaks.com/topic/219871-server-time/#findComment-1139757 Share on other sites More sharing options...
RON_ron Posted November 26, 2010 Author Share Posted November 26, 2010 Sorry - I'm 13 in few days time. Everything what I know is from my mistakes and from form experts like you. Also do you expect someone to read the manual for any simple question? Then why are the forums are for? Anyway... from recent time most of the experts tend to just point to the MANUAL - but I personally feel there should be some guide to the question + a link to the correct page on the Manual. That helps creating more experts to the world much quicker. p.s. you were me few years ago - How happy would you have been when someone helps you get the code working and understand how it works - specially if you did this when you are 13! Quote Link to comment https://forums.phpfreaks.com/topic/219871-server-time/#findComment-1139765 Share on other sites More sharing options...
BlueSkyIS Posted November 26, 2010 Share Posted November 26, 2010 Also do you expect someone to read the manual for any simple question? YES! RTFM Quote Link to comment https://forums.phpfreaks.com/topic/219871-server-time/#findComment-1139770 Share on other sites More sharing options...
Pikachu2000 Posted November 26, 2010 Share Posted November 26, 2010 Did you notice under the quote where I typed "Therefore it always returns GMT"? I simply posted the quote from the manual so you'd understand why my answer was what it was. Understanding is the most important part of learning. Quote Link to comment https://forums.phpfreaks.com/topic/219871-server-time/#findComment-1139771 Share on other sites More sharing options...
RON_ron Posted November 26, 2010 Author Share Posted November 26, 2010 Pikachu2000: Thank you sir! BlueSkyIS: Ok - so your idea is different to mine on this. Quote Link to comment https://forums.phpfreaks.com/topic/219871-server-time/#findComment-1139775 Share on other sites More sharing options...
trq Posted November 26, 2010 Share Posted November 26, 2010 Sorry - I'm 13 in few days time. Age is not a consideration. Also do you expect someone to read the manual for any simple question? The manual should be your first point of call. It has nearly all the answers and you don't have to wait for it to respond. Then why are the forums are for? IMO, forums are for more complex issues. Asking how a function works is NOT a complex issue. Quote Link to comment https://forums.phpfreaks.com/topic/219871-server-time/#findComment-1139782 Share on other sites More sharing options...
Pikachu2000 Posted November 26, 2010 Share Posted November 26, 2010 And yes, I know the manual can be confusing for a beginner. However it really is a great resource, and the more you read it, and the more you understand the syntax, the easier it becomes. Quote Link to comment https://forums.phpfreaks.com/topic/219871-server-time/#findComment-1139785 Share on other sites More sharing options...
JasonLewis Posted November 27, 2010 Share Posted November 27, 2010 When people point me to the manual my general reaction is.. "Do'h!" Sure you're young, but don't get used to being spoon fed answers. Seek them out, read the manual. That is what helps you learn a lot more. Quote Link to comment https://forums.phpfreaks.com/topic/219871-server-time/#findComment-1140271 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.