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
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/