php - strtotime() and easter_date() won't work together -


i'm trying day after easter date:

date("d-m-y", strtotime(easter_date(), '+1 day')); 

i don't understand, date showed still same, when try this:

date("d-m-y", strtotime('+1 day')); 

it works.

how can do?

that's because easter_date() produces unix timestamp:

1364713200

and strtotime() meant 'today' , 'tuesday next week';

if want add day it, add 86400 (this how many seconds in day) easter_date();

so: date("d-m-y", easter_date() + 86400);


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -