phrozenflame Posted December 29, 2006 Share Posted December 29, 2006 <?php print time(); $foo = time(); print $foo;?> umm why did this give me 11454150731145415073 that updates every time I hit refresh, is there a better way to do this, htis may be the time, but I don't understand this language of time, I am use to 10:30, 12:20 or so so, military time, gmt +- theories, What is this number here for that autoupdated everytime I hit the refresh button Link to comment https://forums.phpfreaks.com/topic/32230-coad-help/ Share on other sites More sharing options...
emehrkay Posted December 29, 2006 Share Posted December 29, 2006 time() is UTC - the number of seconds since jan 1st 1970what you're doing is echoing the utc twice without a space Link to comment https://forums.phpfreaks.com/topic/32230-coad-help/#findComment-149576 Share on other sites More sharing options...
phrozenflame Posted December 29, 2006 Author Share Posted December 29, 2006 Oh right I see its more clear now thanks Link to comment https://forums.phpfreaks.com/topic/32230-coad-help/#findComment-149577 Share on other sites More sharing options...
kenrbnsn Posted December 29, 2006 Share Posted December 29, 2006 The time() function returns the number of seconds since 1-1-1970. The reason you're see a large number is that you're not outputting a line break between the prints, so each print puts out "1145415073" next to each other.Ken Link to comment https://forums.phpfreaks.com/topic/32230-coad-help/#findComment-149578 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.