Why is the first of March a Tuesday
Why is the first of March a Tuesday
- Subject: Why is the first of March a Tuesday
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Fri, 25 Mar 2016 22:43:05 +0700
In my calendar 2016/3/1 is a Friday, but:
- (NSString *)timerStringFor: (NSDate *)date
{
NSDateFormatter *dateFormatter = [ [ NSDateFormatter alloc ] init];
dateFormatter.dateFormat = @"EEE dd MMM yyyy HH:mm:ss ZZZ";
NSString *un = [ dateFormatter stringFromDate: date ];
NSLog(@"%s %@",__FUNCTION__, un); // Tue 01 Mar 2016 01:00:00 +0700
return un;
}
prints “Tue 01 Mar 2016 01:00:00 +0700”
What am I doing wrong?
Gerriet.
Mac OS X 10.10.5
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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