Old 05-10-2005, 10:42   #1 (permalink)
datahound
Spare Parts
 
datahound's Avatar
 
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 5,090
PHP dates - assess current date.

Need to assess the current server date and time and return Hour (24hr) and Day.

Can anyone help, save me poring over the books. Me and dates never got on.

Pleeeeeese
  Reply With Quote
Old 05-10-2005, 10:45   #2 (permalink)
Luke Redpath
Barney army!
 
Luke Redpath's Avatar
 
Join Date: Mar 2003
Location: London
Posts: 692
time() should return the current date/time as a Unix timestamp

Use date() or strftime() to format it.
__________________
Luke Redpath .::. Software Engineer .::. Reevoo - Real Reviews From Real Customers
  Reply With Quote
Old 05-10-2005, 10:55   #3 (permalink)
datahound
Spare Parts
 
datahound's Avatar
 
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 5,090
Is it big H or little h. Oh where'e that book.

Thanks anyway.

Can you not look down your nose at me like that..haha!
  Reply With Quote
Old 05-10-2005, 10:55   #4 (permalink)
Luke Redpath
Barney army!
 
Luke Redpath's Avatar
 
Join Date: Mar 2003
Location: London
Posts: 692
__________________
Luke Redpath .::. Software Engineer .::. Reevoo - Real Reviews From Real Customers
  Reply With Quote
Old 05-10-2005, 11:19   #5 (permalink)
datahound
Spare Parts
 
datahound's Avatar
 
Join Date: Jan 2005
Location: Bracknell Forest
Posts: 5,090
Thanks Luke, could never make head nor tail of the PHP website, need a translator, have a good book though. Finally the mists have cleared..
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8