Jump to content

print time yesteraday 7am and today 7am in UNIX timestamp


php_begins

Recommended Posts

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.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.