I am interested in calculating the expiration date of a link, based on the Modified tag (a date) and the Expire tag (number of days), and using this as another tag which I'll refer to as Expire_Date.
According to Lepo, this should be possible. He provided me an equation for doing this but, as I am not a programmer, I am stumped.
Based on the reply he's provided below, would someone be willing to work up some code that I could cut/paste into Emailizer to do this?
Thanks tremendously in advance!
--
> yes.
> you can do it but you have to play with dates.
> just
> use procedures:
>
> unix_to_date
> date_to_unix
>
> you should transform the date into the UNIX system then add the expire value
> (transformed either in seconds)
> so...
>
> $unix_date = &date_to_unix($date) + ($expire * 86000);
>
> # 86000 are seconds in a day.
>
> then re-trasform the UNIX date again to the HUMAN date...
>
> $expiration_date = &unix_to_date($unix_date);
>
> this is only an exaple you should use all appropriate variable.
--