php - How to check hours in timestamp is in between a particular range of hours? -


possible duplicate:
how convert unix timestamp hhmmss?

i have timestamp in format of:

1330559989 

how check hours in timestamp in between 6 hours , 23 hours?

can me please?

date('h', 1330559989) give hours in 24h format leading zero, in example: 23.

there specific function hour of timestamp called getdate offers array interface information (demo):

getdate(1330559989)['hours']; # 23 

Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -