Solved

Converting current server time to a variable with PHP

Posted on 2006-07-15
4
132 Views
Last Modified: 2010-04-25
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

0
Comment
Question by:hep516
  • 2
  • 2
4 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 250 total points
ID: 17117946
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
 

Author Comment

by:hep516
ID: 17118120
Now I just need to convert that to something thats readable by a human.

Thanks for the link!

Matt

0
 

Author Comment

by:hep516
ID: 17118128
Figured it out.

Thanks alot Jason
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 17118182
No problem.  The php.net pages usually have code examples to convert things.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now