HOW TO GET CURRENT MACHINE TIME??
Moderator: General Moderators
-
shamal9586
- Forum Newbie
- Posts: 2
- Joined: Tue Feb 10, 2009 10:17 pm
HOW TO GET CURRENT MACHINE TIME??
pls help me out to find out the code segment to get the current machine time... the time() function isn't working properly...date("r") is also not working....
Re: HOW TO GET CURRENT MACHINE TIME??
time() shows the current unix timestamp
date('n-d-Y \a\\t g:i A') will give you a formatted date, see php.net/date for more formatting details
date('n-d-Y \a\\t g:i A') will give you a formatted date, see php.net/date for more formatting details
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
-
shamal9586
- Forum Newbie
- Posts: 2
- Joined: Tue Feb 10, 2009 10:17 pm
Re: HOW TO GET CURRENT MACHINE TIME??
the current machine time when i'm checking 's 12:11 and it shows 6:50 AM as time... date 's correct...
Re: HOW TO GET CURRENT MACHINE TIME??
Maybe your timezone settings are off?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: HOW TO GET CURRENT MACHINE TIME??
Timestamp is not the same as unix timestamp . Current unix timestamp and unix timestamp converter is available
here
here