<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Thank you, Jacob. It really was not what I expected. But I will remember it.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Zhaoxin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 29, 2016 at 12:16 PM, Jacob Bandes-Storch <span dir="ltr">&lt;<a href="mailto:jtbandes@gmail.com" target="_blank">jtbandes@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">12:01 AM is the correct way of writing &quot;one minute past midnight&quot; in 12-hr time.<div class="gmail_extra">
<br><div class="gmail_quote"><div><div class="h5">On Sun, Aug 28, 2016 at 9:15 PM, Zhao Xin via swift-users <span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div 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 style="font-family:georgia,serif"><br></div><div><p style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal"><span style="color:rgb(187,44,162)">import</span><span> Foundation</span></p><p style="font-family:Menlo;margin:0px;font-size:11px;line-height:normal;min-height:13px"><span></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> now = </span><span style="color:rgb(112,61,170)">Date</span><span>()</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> dc = </span><span style="color:rgb(112,61,170)">Calendar</span><span>.</span><span style="color:rgb(112,61,170)">current</span><span>.</span><span style="color:rgb(61,29,129)">dateComponent<wbr>s</span><span>([.</span><span style="color:rgb(61,29,129)">year</span><span>, .</span><span style="color:rgb(61,29,129)">month</span><span>, .</span><span style="color:rgb(61,29,129)">day</span><span>], from: </span><span style="color:rgb(79,129,135)">now</span><span>)</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>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> date = </span><span style="color:rgb(112,61,170)">Calendar</span><span>.</span><span style="color:rgb(112,61,170)">current</span><span>.</span><span style="color:rgb(61,29,129)">date</span><span>(from: </span><span style="color:rgb(79,129,135)">dc</span><span>)</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>(</span><span style="color:rgb(112,61,170)">DateFormatter</span><span>.</span><span style="color:rgb(61,29,129)">localizedS<wbr>tring</span><span>(from: </span><span style="color:rgb(79,129,135)">date</span><span>!, dateStyle: .</span><span style="color:rgb(61,29,129)">long</span><span>, timeStyle: .</span><span style="color:rgb(61,29,129)">long</span><span>))</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>// prints &quot;August 29, 2016 at 12:01:00 AM GMT+8&quot;</span></p><div style="font-family:georgia,serif"><span><br></span></div><div style="font-family:georgia,serif"><span><br></span></div><div><font face="georgia, serif" color="#000000">Zhaoxin</font></div></div></div>
<br></div></div>______________________________<wbr>_________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailma<wbr>n/listinfo/swift-users</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div>