Jump to content


Photo

Getting started with timestamps.....


  • Please log in to reply
1 reply to this topic

#1 legohead6

legohead6
  • Members
  • PipPipPip
  • Advanced Member
  • 434 posts

Posted 28 July 2006 - 05:18 AM

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
"Syntax error" .. WHERE THE **** IS IT?!

#2 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 28 July 2006 - 02:36 PM

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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users