It might be worthwhile to check the POSIX strftime Clib-function:
As example: $ perl -we 'use POSIX; print strftime("%a, %d %b %Y %H:%M:%S %z", localtime(time()) )."\n"' Wed, 29 Apr 2015 16:45:31 +0200 $ date --rfc-822 Wed, 29 Apr 2015 16:45:32 +0200 I am unfamiliar with differences in platforms or impact in code when used ... -- Met vriendelijke groet / Kind regards, Fred de Brouwer On 29 Apr 2015, at 16:29, Dianne Skoll <d...@roaringpenguin.com> wrote: > On Wed, 29 Apr 2015 10:17:34 -0400 > "Bill Cole" <mdlist-20140...@billmail.scconsult.com> wrote: > >> I am quite happy to hear that it was a summer intern who wrote that. >> It didn't seem up to the quality I'm used to seeing in MD and I'm >> glad it isn't a sign of encroaching senility (but I project...) > > :) > > No, I'm not senile yet. OK, since my recent life change I've started > crying at pictures of puppies and babies and craving chocolate... but > I digress... > > I'll look at implementing a sane test for rfc2822_date that doesn't rely > on the OS "date" command at all. > > Regards, > > Dianne. _______________________________________________ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com http://lists.roaringpenguin.com/mailman/listinfo/mimedefang