coding_begins
09-15-2011, 04:05 PM
I have to two variables $cronlast and $cronnow in my php code.
I need to have the time 7am of previous day in $cronlast variable and 7am today in $cronnow variable.
I need the time in UNIX timestamp format.
So everyday when I print the variable I should have:
$cronlast=7am Yesterday(in Unix Timestamp)
$cronnow=7am Today(in Unix Timestamp)
I would appreciate any help.
I need to have the time 7am of previous day in $cronlast variable and 7am today in $cronnow variable.
I need the time in UNIX timestamp format.
So everyday when I print the variable I should have:
$cronlast=7am Yesterday(in Unix Timestamp)
$cronnow=7am Today(in Unix Timestamp)
I would appreciate any help.