Jump to content

Archived

This topic is now archived and is closed to further replies.

legohead6

Getting started with timestamps.....

Recommended Posts

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

Share this post


Link to post
Share on other sites
simple
to capture current timestamp
$variable = time();
to capture the current date
or date from a time stape
$variable = date("formathere");
check php.net for formats
if you want to change a time stamp into date format
$variable = date("formathere", $variable); // the variable would contain the time stamp.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.