Re: NSDate/NSDateFormatter question

2012-03-25 Thread Roland King
On Mar 26, 2012, at 4:52 AM, Donald Hall wrote: > Roland, John, > > Thanks for the response. I am sure your explanation is correct. I seem to > recall that back in 1970 Daylight Saving Time started at the end of April, so > that is why I am getting different results, as now it starts on the se

Re: NSDate/NSDateFormatter question

2012-03-25 Thread Donald Hall
Roland, John, Thanks for the response. I am sure your explanation is correct. I seem to recall that back in 1970 Daylight Saving Time started at the end of April, so that is why I am getting different results, as now it starts on the second Sunday of March. I should probably fill in my date ob

Re: NSDate/NSDateFormatter question

2012-03-24 Thread Roland King
On Mar 25, 2012, at 11:14 AM, Donald Hall wrote: > Can anyone explain what is going on here: > >NSDate *now = [NSDate date]; >NSLog(@"now is %@", now); > >NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; >[dateFormatter setTimeZone:[NSTimeZone loc

Re: NSDate/NSDateFormatter question

2012-03-24 Thread John Brownie
Donald Hall wrote: 2012-03-24 20:57:18.976 calendardatetest[77052:707] now is 2012-03-25 02:57:18 + 2012-03-24 20:57:18.977 calendardatetest[77052:707] stringFromDate=8:57 PM 2012-03-24 20:57:18.978 calendardatetest[77052:707] new date from string=1970-01-02 03:57:00 + 2012-03-24 20:57:

NSDate/NSDateFormatter question

2012-03-24 Thread Donald Hall
Can anyone explain what is going on here: NSDate *now = [NSDate date]; NSLog(@"now is %@", now); NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setTimeZone:[NSTimeZone localTimeZone]]; // this is MDT for me [dateFormatter s

Re: NSDateFormatter question

2008-07-03 Thread Deborah Goldsmith
Correct. We're aware there is a need for what you want to do, but there is currently no way to do it. Please file an enhancement request. Deborah Goldsmith Apple Inc. [EMAIL PROTECTED] On Jul 3, 2008, at 1:13 PM, Chuck Soper wrote: Hello, Currently, I'm creating a NSDateFormatter instance

NSDateFormatter question

2008-07-03 Thread Chuck Soper
Hello, Currently, I'm creating a NSDateFormatter instance as follows: dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateStyle:kCFDateFormatterMediumStyle]; [dateFormatter setTimeZone:myTimeZone]; Assuming that the user hasn't modified their International formats using