Page 1 of 1
HOW TO GET CURRENT MACHINE TIME??
Posted: Tue Feb 10, 2009 10:23 pm
by shamal9586
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??
Posted: Tue Feb 10, 2009 10:34 pm
by s.dot
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
Re: HOW TO GET CURRENT MACHINE TIME??
Posted: Wed Feb 11, 2009 12:42 am
by shamal9586
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??
Posted: Wed Feb 11, 2009 10:40 am
by pickle
Maybe your timezone settings are off?
Re: HOW TO GET CURRENT MACHINE TIME??
Posted: Wed Apr 15, 2009 2:19 pm
by christine
Timestamp is not the same as unix timestamp . Current unix timestamp and unix timestamp converter is available
here