For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > October 2007 > code to generate XML time string









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author code to generate XML time string
Stu

2007-10-25, 7:14 pm

Is there a function or agrument I can pass to a funciton to generate a
XML time string.

note this is in UTC time

Ie
2002-10-10T17:00:00Z

Måns Rullgård

2007-10-25, 7:14 pm

Stu <beefstu350@hotmail.com> writes:

> Is there a function or agrument I can pass to a funciton to generate a
> XML time string.


I've no idea what an "XML time string" is, but maybe strftime() can be
used.

--
Måns Rullgård
mans@mansr.com
Logan Shaw

2007-10-26, 4:27 am

Stu wrote:
> Is there a function or agrument I can pass to a funciton to generate a
> XML time string.
>
> note this is in UTC time
>
> Ie
> 2002-10-10T17:00:00Z


That looks an awful lot like an ISO 8601 time string to me. Knowing what
the format is that you're looking for should help you find some code that
generates it.

- Logan
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com