Level : WORDPRESS BOOK LINKEDIN PATENT Send Mail 동냥하기 hajunho.com

swiftdate

!A. Basics / / 2019. 1. 24. 13:35

https://github.com/malcommac/SwiftDate

http://malcommac.github.io/SwiftDate/manipulate_dates.html


Region(tz: TimeZoneName.europeRome, cal: CalendarName.gregorian, loc: LocaleName.italianItaly) 아님...


주의


- `CalendarName` is now `Calendars` and its conform to the new `CalendarConvertible` protocol. All parameters (like `Region` inits function) takes now a generic `CalendarConvertible ` instance: this mean you can pass one of the enum values of the


https://github.com/malcommac/SwiftDate/search?q=calendarname&unscoped_q=calendarname


Timezone은 Zones

CalendarName은 Calendars

LocaleName은 Locales로 변경됨.



let regionSeoul = Region(calendar: Calendars.gregorian, zone: Zones.asiaSeoul, locale: Locales.korean)


var modifiedDate = try! DateInRegion(year: dt.year, month: dt.month, day: dt.day, hour: 0, minute: 0, second: 0, nanosecond: 0, region: GS.s.regionSeoul)

  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기