I need to get a random hour that I will insert to my database I could do this by just getting the hour and inserting that or I could use a timestamp, now what this random time of day will do for me is when a user logs in during this time (like a happy hour feature) then they will receive some sort of reward, this feature would only be enabled on a certain day of the week, therefore what I am trying to do is something like
today is thursday & the time is RANDOM HOUR then give the user a gold star
Just log them in without giving them anything or doing anything...
mktime() will give you the integer . Check against this to give (or not give) reward.