Upgrade to Pro — share decks privately, control downloads, hide ads and more …

日本のサマータイムに苦しめられた話 / japan_summertime

uhooi
September 06, 2019

日本のサマータイムに苦しめられた話 / japan_summertime

uhooi

September 06, 2019
Tweet

More Decks by uhooi

Other Decks in Programming

Transcript

  1. A J @ CD O! 901 0 06 L :

    2/  1
  2. ) + 5       

     ( 0( + ) : @ 9   timezone "JST" NSDateFormatter
  3. 6     dateFormatter.dateFormat = @"yyyy/MM/dd"; // 

    →  [dateFormatter dateFromString:@"1951/05/06"]; [dateFormatter dateFromString:@"1951/05/07"]; 0
  4. 1951/05/06 → 1951-05-05 15:00:00 +0000 // iOS 9 1951/05/06 →

    (null) // iOS 10 1951/05/07 → 1951-05-06 14:00:00 +0000  8 
  5. 1951/05/06 → 1951-05-05 15:00:00 +0000 // iOS 9 1951/05/06 →

    (null) // iOS 10 1951/05/07 → 1951-05-06 14:00:00 +0000 9 6 / 0 9 5 1 
  6. 1951/05/06 → 1951-05-05 15:00:00 +0000 // iOS 9 1951/05/06 →

    (null) // iOS 10 1951/05/07 → 1951-05-06 14:00:00 +0000 10 5 / 0 91 @9 @ 61 
  7.  17      dateFormatter.dateFormat = @"yyyy/MM/dd

    HH:mm:ss"; NSDate *date = [dateFormatter dateFromString:@"1951/05/05 23:59:59"]; [date dateByAddingTimeInterval:1.f]; // `date` 1
  8. l 3 9 5 46490/4 8 464 @ l -

    3 9 :44 .87 3884 4 07 0 / /. # 30 3884 25