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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Arkadiusz Miśkiewicz
Dátum:  
Címzett: exim-users
Tárgy: 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