mysql - PhP timestamp from a day -


i've got little doubt.

how can know timestamp day x, hour 00:00:00 till 23:59:59?

i guess time() gives current timestamp, , need timestamp beginning of day final 1 check db in mysql moment between times.

strtotime converts date string timestamp.

$start_date = "2012-01-10"; $end_date = "2012-04-14"; $start = strtotime($start_date . " 00:00:00"); $end = strtotime($end_date . " 23:59:59"); 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -