<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">It should be called 00:01:00 A.M., instead of 12:01:00 A.M. Shouldn&#39;t it?</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default"><p style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="color:rgb(187,44,162)">import</span><span style=""> Foundation</span></p><p style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal;min-height:13px"><span style=""></span><br></p><p style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="color:rgb(187,44,162)">let</span><span style=""> now = </span><span style="color:rgb(112,61,170)">Date</span><span style="">()</span></p><p style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="color:rgb(187,44,162)">var</span><span style=""> dc = </span><span style="color:rgb(112,61,170)">Calendar</span><span style="">.</span><span style="color:rgb(112,61,170)">current</span><span style="">.</span><span style="color:rgb(61,29,129)">dateComponents</span><span style="">([.</span><span style="color:rgb(61,29,129)">year</span><span style="">, .</span><span style="color:rgb(61,29,129)">month</span><span style="">, .</span><span style="color:rgb(61,29,129)">day</span><span style="">], from: </span><span style="color:rgb(79,129,135)">now</span><span style="">)</span></p><p style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal;color:rgb(112,61,170)"><span style="color:rgb(79,129,135)">dc</span><span style="color:rgb(0,0,0)">.</span><span style="">minute</span><span style="color:rgb(0,0,0)"> = </span><span style="color:rgb(39,42,216)">1</span></p><p style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="color:rgb(187,44,162)">let</span><span style=""> date = </span><span style="color:rgb(112,61,170)">Calendar</span><span style="">.</span><span style="color:rgb(112,61,170)">current</span><span style="">.</span><span style="color:rgb(61,29,129)">date</span><span style="">(from: </span><span style="color:rgb(79,129,135)">dc</span><span style="">)</span></p><p style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="color:rgb(61,29,129)">print</span><span style="">(</span><span style="color:rgb(112,61,170)">DateFormatter</span><span style="">.</span><span style="color:rgb(61,29,129)">localizedString</span><span style="">(from: </span><span style="color:rgb(79,129,135)">date</span><span style="">!, dateStyle: .</span><span style="color:rgb(61,29,129)">long</span><span style="">, timeStyle: .</span><span style="color:rgb(61,29,129)">long</span><span style="">))</span></p><p style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal">






</p><p style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal;color:rgb(0,132,0)"><span style="">// prints &quot;August 29, 2016 at 12:01:00 AM GMT+8&quot;</span></p><div style="font-family:georgia,serif"><span style=""><br></span></div><div style="font-family:georgia,serif"><span style=""><br></span></div><div><font face="georgia, serif" color="#000000">Zhaoxin</font></div></div></div>