Home » Date and Time » Date » Bug #1390
Support for ISO Date format part seconds
Details
| Submitted | 2004-05-12 10:17 UTC |
|---|---|
| From | aashley at optimiser dot com |
| Assigned | pajoye |
| Status | Closed |
| Package | Date |
| PHP Version | Irrelevant |
| OS | Gentoo Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-05-12 10:17 UTC] aashley at optimiser dot com
Description:
------------
The ISO8601 and XML Data Type standards define a date as yyyy '-' mm '-' dd 'T' hh ':' mm ':' ss ('.' s+)? (zzzzzz)?
The current Date class does not support the parsing or output of the ('.' s+)? part. This was discovered while trying to use the Microsoft .NET soap client against a PEAR SOAP server. The .NET client will only send and recieve dates with the full .s+ representation.
This patch adds parsing of this representation to the setDate function, display of %s (Seconds including the decimal part) to format and the DATE_FORMAT_ISO_EXTENDED_MICROTIME constant.
No work has been done at this stage with the tracking and manipulating of the part seconds component. Simply we needed to be able to interface with .Net clients fast so this patch was put together.
The full patch is available at http://frood.cernun.net/stuff/date-microsecond-support.diff
This is related to bug #354
For the specification details asked for in that bug please see http://www.w3.org/TR/2004/PER-xmlschema-2-20040318/#dateTime
[2004-05-16 13:01 UTC] paj at pearfr dot org
This bug has been fixed in CVS.
In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.
In case this was a pear.php.net website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PEAR better.