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)
'HJH IT Logs' 카테고리의 다른 글
손석희 폭행 뉴스를 접하고... (0) | 2019.01.25 |
---|---|
UIView 가장자리를 둥글게 (0) | 2019.01.24 |
BTS 성공의 의미 (0) | 2019.01.24 |
KPI 설정의 필요성 (0) | 2019.01.24 |
파이썬 버전별 특징 (0) | 2019.01.24 |
최근댓글