RE: [exim] Is it possible to perform date comparisons ?

Etusivu
Poista viesti
Vastaa
Lähettäjä: Herb Martin
Päiväys:  
Vastaanottaja: exim-users
Aihe: RE: [exim] Is it possible to perform date comparisons ?
> -----Original Message-----
> From: exim-users-bounces@???
> [mailto:exim-users-bounces@exim.org] On Behalf Of Francis Shillitoe
> Sent: Friday, August 19, 2005 7:40 AM
> To: exim-users@???
> Subject: [exim] Is it possible to perform date comparisons ?
>
> Hi,
>
> Is it possible to do date comparisons in Exim ?


One of the Exim experts may correct me but I believe
this is possible, but likely only as a "string" so the
most difficult issue may be getting the "date" into a
form you can parse and compare to one of the Exim $tod_xxxx
formats with 'eq' or maybe even match.

Search for the $tod_ (epoch, full, logfile, etc) string
expansion variables....
< http://www.exim.org/exim-html-4.50/doc/html/spec_11.html#SECT11.9 >

--
Herb Martin

$tod_bsdinbox: The time of day and date, in the format required for
BSD-style mailbox files, for example: Thu Oct 17 17:14:09 1995.

$tod_epoch: The time and date as a number of seconds since the start of the
Unix epoch.

$tod_full: A full version of the time and date, for example: Wed, 16 Oct
1995 09:51:40 +0100. The timezone is always given as a numerical offset from
UTC, with positive values used for timezones that are ahead (east) of UTC,
and negative values for those that are behind (west).

$tod_log: The time and date in the format used for writing Exim's log files,
for example: 1995-10-12 15:32:29, but without a timezone.

$tod_logfile: This variable contains the date in the format yyyymmdd. This
is the format that is used for datestamping log files when log_file_path
contains the %D flag.

$tod_zone: This variable contains the numerical value of the local timezone,
for example: -0500.

$tod_zulu: This variable contains the UTC date and time in "Zulu" format, as
specified by ISO 8601, for example: 20030221154023Z.