user defaults - NSDateTimeOrdering string
user defaults - NSDateTimeOrdering string
- Subject: user defaults - NSDateTimeOrdering string
- From: Ben Dougall <email@hidden>
- Date: Wed, 23 Feb 2005 14:44:33 +0000
in the documentation for NSUserDefault's constant NSDateTimeOrdering it
says:
A string that specifies how to use ambiguous numbers in date strings.
Specify this value as a permutation of the letters M (month), D (day),
...
the 'specify' part implies that you have to set this value yourself?
(which surprises me if that is the case). does, or should the string
get based on something appropriate automatically? seemingly not because:
[[NSUserDefaults standardUserDefaults] objectForKey:NSDateTimeOrdering]
returns:
MDYH
for me, and in my international date prefs i have both long and short
date formats set so the day number comes first, before the month, but i
still get the above result, not DMYH as i expected. what's that
string's order based on? or is MDYH the blanket default -- its not
based on anything, always MDYH unless manually changed?
is NSDateTimeOrdering something your code needs to set before using, so
therefore set it appropriately and manually based on the the results
from examining the user's date settings maybe?
thanks, ben
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden