0

I need to input, 09 hours 20 minutes to strtotime and to get the corresponding timestamp. I tried out, strtotime("09 hours 20 minutes",0) but it gives me time passed in seconds in current day only. ie 33600.

I need to get the exact timestamp. ie time passed in seconds from 1-1-1970 to current day 09:20. Is there anyway? Any help will be appreciated.

4

1 回答 1

3

Like Wong said in the first comment: use "today" as offset

strtotime("09 hours 20 minutes", strtotime("today"));
于 2013-02-04T05:22:24.967 回答