Log in

View Full Version : a quick question


Acers
05-23-2005, 03:24 PM
I am trying to do some changes to the display of post time.
Just wanna know, how can i get just the hour at which the post was made? eg if it was made at 12:20hours then i want to get a variable to take value 12.(rounded off)

Using this i will be manipulating that number to return a text. Thats the idea?
Any help?

Marco van Herwaarden
05-23-2005, 04:19 PM
You can use the floor() function to round down.