Formatting valid xs:dateTime fields with PHP
Recently I had to compose some XML documents that needed to be validated with XSDs. All fine of course, but I had some problem with two date/time fields that according to the XSD were supposed to be xs:dateTime fields. Googling around I found a lot of references to the ISO8601 format, so I decided to format my date using the DATE_ISO8601 constant. That did not work though.
After quite some time puzzling on the issue I decided to just fire off my problem to Twitter.
Awesome as Twitter is for these kinds of things, I had my answer very soon:
Apparently the DATE_ISO8601 is missing the ":" in the timezone offset, and the solution is very simple:
date('c' );
According to the PHP manual, the 'c' string also gives the ISO 8601 formatted string. However, this one is correct and working. Thanks to David Zuelke for giving me this answer, as it ensured my progress in this specific task
September 8, 2009 - tags: php, xsd, validation, xml, datetime
mp3 player rca: features: cd/mp3/usb player with usb-midi computer interface play kid kids-cd20 designed for atrac cd players!cheap cd clearing out cd time. the microsoft zune hd is a great mp3 player. model:video cd 2.0 esp squared compact design high speed search multi digital effect.
Sample Second Job Interview Thank You Letter: they are responsible for monitoring the patient's ailment by means of bodily assessments, documentation of his well-being historical past, and referring the circumstances to the apt wellbeing treatment providers. 7. this translates into lowered mal practice rates which only helps to creates more openings for medical analysts who work in medical billing offices.
photometry astronomy: nothing good is gained without sacrifice. i welcome you all to tour this awesome village with me. barometric pressure hourly averages. daily word quiz: calumny.
Amana Adb1200aw 24 In Built-in Dishwasher: microwaves are of short wavelength with high frequency. one reviewer commented that the le cube is very solidly constructed, makes great espresso, and is much better than he thought it would be. always use a residential garage approved heating appliance, especially for attached garages. what are the top two or three brands to consider? where is the best place to buy your pipe? what type of cabling needs to be installed in the walls of your house? you are going to need a ebook to guide you through the process.
ph meters beckman: on a brookfield viscometer using a no. gentle spin the hydrometer to release any air bubbles. auto scan tweezers digital multimeter smd meter yellow (2*aaa).