Use POSIX::strftime for date conversion
Status: Beta
Brought to you by:
kutterma
Noah found the following:
$ perl bm.pl
Benchmark: 100000 iterations of [%Y-%m-%dT%H:%M:%S%z]
POSIXDate: 1.396331
POSIXDate(avg): 1.396331e-05 sec/iteration
DateFormatDate: 9.172891
DateFormatDate(avg): 9.172891e-05 sec/iteration
POSIX::strftime is faster, and issues less (unneccessary) warnings.
Thus, SOAP::WSDL's date, dateTime and time classes should use POSIX::strftime instead of Date::Format
Logged In: YES
user_id=884175
Originator: YES
Unfortunately, POSIX' and Date::Format's strftime() differ in their handling of timezone data. May be a bit harder than first thought...
Obsolete as of rev757 - non-XML-formatted data is now formatted by sprintf if it contains a timezone. The warnings are removed in the test script itself.