Re: 10.4 date format help
Re: 10.4 date format help
- Subject: Re: 10.4 date format help
- From: Ryan Britton <email@hidden>
- Date: Tue, 5 Dec 2006 12:19:55 -0800
The plist DTD spells out exactly the date format it expects in a date
tag:
<!ELEMENT date (#PCDATA)> <!-- Contents should conform to a subset of
ISO 8601 (in particular, YYYY '-' MM '-' DD 'T' HH ':' MM ':' SS
'Z'. Smaller units may be omitted with a loss of precision) -->
On Dec 5, 2006, at 12:13 PM, Marc Respass wrote:
On Dec 5, 2006, at 2:53 PM, Sean McBride wrote:
On 2006-12-05 14:17, Marc Respass said:
and I can't find the information I need to set the time zone. As far
Does this have what you're looking for:
<http://icu.sourceforge.net/userguide/formatDateTime.html>
Not really. I found that. I think I wasn't clear because I only now
figured out what I want. What I'm looking for is the Property List
format for dates. If I have a date and want to convert it to a
string that is valid for a plist, what is the format? The page you
link to does not have an example of the date format used in plists.
Anything other than 2006-12-05T13:00:00Z fails to parse and that
format seems to only be GMT. I guess, if you want to represent the
time as something other than GMT, you know what time that is (user
defined default time zone) but my problem is that I am creating a
plist via an XSL transformation. It turns out that I have an XML
encoder and decoder so I can run it through the decoder then the
encoder and it fixes the times for me. It's kinda lame but doing
math in an XSL seems equally lame.
Thanks again for all the help
Marc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden