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
Post a Comment