Celebrate 1234567890 seconds since Epoch

// I guess this will be a busy February, lots of dates to celebrate.
// Darwin's 200th birthday on Feb 12, Carnival starts on Feb 19, and now this:

#import <Foundation/Foundation.h>

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

    NSDate *date = [NSDate dateWithTimeIntervalSince1970:(NSTimeInterval)1234567890];
    NSTimeZone *timezone = [NSTimeZone timeZoneWithName:@"CET"];
    NSString *when = [date descriptionWithCalendarFormat:@"%Y-%m-%d %H:%M:%S"
                                                timeZone:timezone
                                                  locale:nil];
    NSLog(@"Celebration at: %@", when);
    [pool release];
    return 0;
}

yields:

Celebration at: 2009-02-14 00:31:30

About Daniel Tiggemann

Software-developer living in Cologne, Germany. Was once a physicist, specialized in computer simulations and parallel programming. Now more into JavaScript, web frontend development, and especially mobile computing.
This entry was posted in Programming. Bookmark the permalink.

628 Responses to Celebrate 1234567890 seconds since Epoch

  1. Pingback: play free playstation 4

  2. Pingback: bedbugs

  3. Pingback: Instant messenger

  4. Pingback: Get More Details

  5. Pingback: Teeter Hang Ups Review Youtube

  6. Pingback: http://www.youtube.com/watch?v=Lz_IgaQ3B7E

  7. Pingback: vending machine online

  8. Pingback: Bonuses

  9. Pingback: the hearing fix

  10. Pingback: tadawul fx

  11. Pingback: make money

  12. Pingback: make money from internet

  13. Pingback: forex online trading

  14. Pingback: cialis

  15. Pingback: viagra

  16. Pingback: buy cialis

  17. Pingback: viagra

  18. Pingback: Viagra

  19. Pingback: valium

  20. Pingback: viagra

  21. Pingback: cialis

  22. Pingback: Cialis

  23. Pingback: adipex

  24. Pingback: klonopin

  25. Pingback: viagra online without prescription

  26. Pingback: levitra

  27. Pingback: cheap cialis

  28. Pingback: buy cialis