Bill Brown bio photo

Bill Brown

A complicated man.

Twitter Github

I love it when I come across evidence of a sense of humor when reading technical documentation. I bet someone at Apple had a good time crafting this:

Listing 1  An hour and a half from now
NSDate *today = [NSDate date];
NSDateComponents *offsetComponents = [[NSDateComponents alloc] init];
[offsetComponents setHour:1];
[offsetComponents setMinutes:30];
// Calculate when, according to Tom Lehrer, World War III will end
NSDate *endOfWorldWar3 = [gregorian dateByAddingComponents:comps toDate:today options:0];

For those that don't get the reference, watch this video of him performing it. (My familiarity with the song was from countless Sunday nights listening to Doctor Demento on the radio.)