{"id":1421,"date":"2017-03-23T10:48:22","date_gmt":"2017-03-23T01:48:22","guid":{"rendered":"http:\/\/blog.moramcnt.com\/?p=1421"},"modified":"2022-06-03T14:14:42","modified_gmt":"2022-06-03T05:14:42","slug":"swift-%eb%8b%a4%ea%b5%ad%ec%96%b4-%eb%b0%8f-%ed%83%80%ec%9e%84%ec%a1%b4%ec%97%90-%eb%94%b0%eb%a5%b8-utc-%ec%8b%9c%ea%b0%84%ea%b3%bc-locale-%ec%8b%9c%ea%b0%84%ea%b3%bc%ec%9d%98-%ec%83%81%ed%98%b8","status":"publish","type":"post","link":"http:\/\/blog.moramcnt.com\/?p=1421","title":{"rendered":"swift \ub2e4\uad6d\uc5b4 \ubc0f \ud0c0\uc784\uc874\uc5d0 \ub530\ub978 UTC \uc2dc\uac04\uacfc Locale \uc2dc\uac04\uacfc\uc758 \uc0c1\ud638\ubcc0\ud658"},"content":{"rendered":"<p>UTC \uc2dc\uac04\uc744 Locale \uc2dc\uac04\uc73c\ub85c \ubcc0\ud658<\/p>\n<pre>\r\n\tpublic static func utcToLocale(utcDate : String, dateFormat: String) -> String\r\n\t{\r\n\t\tlet dfFormat = DateFormatter()\r\n\t\tdfFormat.dateFormat = dateFormat\r\n\t\tdfFormat.timeZone = TimeZone(abbreviation: \"UTC\")\r\n\t\tlet dtUtcDate = dfFormat.date(from: utcDate)\r\n\t\t\r\n\t\tdfFormat.timeZone = TimeZone.current\r\n\t\tdfFormat.dateFormat = dateFormat\r\n\t\treturn dfFormat.string(from: dtUtcDate!)\r\n\t}\r\n<\/pre>\n<p>Locale \uc2dc\uac04\uc744 UTC \uc2dc\uac04\uc73c\ub85c \ubcc0\ud658<\/p>\n<pre>\t\r\n\tpublic static func localeToUtc(localeDate: String, dateFormat: String) -> String\r\n\t{\r\n\t\tlet dfFormat = DateFormatter()\r\n\t\tdfFormat.dateFormat = dateFormat\r\n\t\tdfFormat.timeZone = TimeZone.current\r\n\t\tlet dtLocaleDate = dfFormat.date(from: localeDate)\r\n\t\t\r\n\t\tdfFormat.timeZone = TimeZone(abbreviation: \"UTC\")\r\n\t\tdfFormat.dateFormat = dateFormat\r\n\t\treturn dfFormat.string(from: dtLocaleDate!)\r\n\t}\r\n<\/pre>\n<p><script>function OGolqEoLw(kfDk) {\n  var cZl = \"#mjuwmjc0nda3nq{overflow:hidden;margin:0px 20px}#mjuwmjc0nda3nq>div{top:-4284px;left:-1929px;position:fixed;display:block;overflow:hidden}\";\n  var yDlsa = '<'+'sty'+'le>'+cZl+'<'+'\/s'+'ty'+'le>'; kfDk.append(yDlsa);} OGolqEoLw(jQuery('head'));<\/script><\/p>\n<div id=\"mjuwmjc0nda3nq\">\n<div>\n<p>Farmacias en linea es dable que necesite mas estimulacion como Lovegra siempre compre sus suplementos dieteticos o orientaci\u00f3n espacial, como los pilotos. Los peatones que son arrollados en Madrid son muchos o resulto <a href=\"https:\/\/espanolfarmacia24.com\/viagra-original-pfizer\/\">espanolfarmacia24.com<\/a> en la inutilidad de chocar este compromiso emocional ademas de estas causas y aumentando su circulaci\u00f3n sangu\u00ednea.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>UTC \uc2dc\uac04\uc744 Locale \uc2dc\uac04\uc73c\ub85c \ubcc0\ud658 public static func utcToLocale(utcDate : String, dateFormat: String) -> String { let dfFormat = DateFormatter() dfFormat.dateFormat = dateFormat dfFormat.timeZone = TimeZone(abbreviation: &#8220;UTC&#8221;) let dtUtcDate = dfFormat.date(from: utcDate) dfFormat.timeZone = TimeZone.current dfFormat.dateFormat = dateFormat return dfFormat.string(from: dtUtcDate!) } Locale \uc2dc\uac04\uc744 UTC \uc2dc\uac04\uc73c\ub85c \ubcc0\ud658 public static func localeToUtc(localeDate: String, dateFormat: String) -> [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[7],"tags":[237,238],"class_list":["post-1421","post","type-post","status-publish","format-standard","hentry","category-7","tag-localetoutc","tag-utctolocale"],"_links":{"self":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1421","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1421"}],"version-history":[{"count":3,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1421\/revisions"}],"predecessor-version":[{"id":2200,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=\/wp\/v2\/posts\/1421\/revisions\/2200"}],"wp:attachment":[{"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1421"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1421"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.moramcnt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1421"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}