legohead6 Posted July 28, 2006 Share Posted July 28, 2006 Hi, I qould like to learn how to use timestamps and stuff for like showing whos logged into a forum.. if anyone could teach me or point me to a good tutorial that would be great Quote Link to comment https://forums.phpfreaks.com/topic/15856-getting-started-with-timestamps/ Share on other sites More sharing options...
Ninjakreborn Posted July 28, 2006 Share Posted July 28, 2006 simpleto capture current timestamp$variable = time();to capture the current dateor date from a time stape$variable = date("formathere");check php.net for formatsif you want to change a time stamp into date format$variable = date("formathere", $variable); // the variable would contain the time stamp. Quote Link to comment https://forums.phpfreaks.com/topic/15856-getting-started-with-timestamps/#findComment-65179 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.