-----Original Message----- >From: "Pierre Joye" <pierre....@gmail.com> >Sent: Wednesday, October 21, 2009 1:54pm >To: jani.taski...@iki.fi >Cc: "Nick Fortenberry" <n...@mailtrust.com>, internals@lists.php.net, "Jake >Levitt" ><jake.lev...@mailtrust.com> >Subject: Re: [PHP-DEV] Patch: Add INTERNALDATE to imap_append() > >On Wed, Oct 21, 2009 at 6:44 PM, Jani Taskinen <jani.taski...@iki.fi> wrote: >> 1. Top-posting is considered evil. >> 2. Look harder, timelib_* has several functions for this, be creative.. >> 3. Tabs instead of spaces, NO C++ comments! > >4. point him to the right function then. > >That would spare us time and bandwidth. > >Cheers, >-- >Pierre
Hey Guys, We have been looking through the timelib library and the only function that we found that would do something similar to what we want is timelib_parse_from_format(). However, this still will not work completely; it is not strict enough. Is there any particular reason that you don't want to use a regex? Using the regex allows the function to make sure the internal date is in an imap date format (date-time = DQUOTE date-day-fixed "-" date-month "-" date-year SP time SP zone DQUOTE). We're not trying to convert invalid dates into the correct format. Thanks, Nick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php