Converting current server time to a variable with PHP

Hey guys,

I was wondering how I could access the server time with php. I want to get it into a variable so I can time stamp messages being sent user to user.


Thanks,
Matt

hep516Asked:
Who is Participating?
 
Jason C. LevineConnect With a Mentor No oneCommented:
Hi hep516,

There are ton of functions in PHP to deal with time.  Start here:

http://us3.php.net/time

and if that isn't quite what you want, the rest of the functions are on the left of the page.
0
 
hep516Author Commented:
Now I just need to convert that to something thats readable by a human.

Thanks for the link!

Matt

0
 
hep516Author Commented:
Figured it out.

Thanks alot Jason
0
 
Jason C. LevineNo oneCommented:
No problem.  The php.net pages usually have code examples to convert things.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.