Re: [exim] local time based rule (tod_zulu, tod_zone)

Top Page
Delete this message
Reply to this message
Author: Arkadiusz Miśkiewicz
Date:  
To: exim-users
Subject: Re: [exim] local time based rule (tod_zulu, tod_zone)
On Monday 07 of April 2014, Arkadiusz Miśkiewicz wrote:
> Hi.
>
> How to create time based rules using local time zone?
>
> For example:
>
> condition = ${if
> or{{>{${substr_8_4:$tod_zulu}}{2300}}{<{${substr_8_4:$tod_zulu}}{0300}}}
> {1}{0}}
>
> but localtime instead of UTC?
>
> Somehow calculate tod_zulu + $tod_zone, but how?


ended up with macro:

M_gethour = ${sg{$tod_full}{\N.* (\d+):(\d+):(\d+) .*\N}{\$1}}

--
Arkadiusz Miśkiewicz, arekm / maven.pl