But the beginning of AM/PM is 12, and the end is 11, which is odd to me. I now
think the model as a real clock on the wall which use Rome numbers, there are
III, VI, IX and XII. So definetly there is no zero hour on the clock. Thanks
all.
Zhaoxin
Get Outlook for iOS
On Mon, Aug 29, 2016
The 12-hour clock will always remain a mystery to me
https://en.wikipedia.org/wiki/12-hour_clock
“Likewise, some U.S. style guides recommend either clarifying "midnight"
with other context clues, such as specifying the two dates between which it
falls, or not referring to midnight at all. For an
24 hour time shouldn’t need an AM/PM indicator.
Saagar Jha
> On Aug 28, 2016, at 21:15, Zhao Xin via swift-users
> wrote:
>
> It should be called 00:01:00 A.M., instead of 12:01:00 A.M. Shouldn't it?
>
> import Foundation
>
> let now = Date()
> var dc =
12:01 AM is the correct way of writing "one minute past midnight" in 12-hr
time.
On Sun, Aug 28, 2016 at 9:15 PM, Zhao Xin via swift-users <
swift-users@swift.org> wrote:
> It should be called 00:01:00 A.M., instead of 12:01:00 A.M. Shouldn't it?
>
> import Foundation
>
>
> let now = Date()
>
>
It should be called 00:01:00 A.M., instead of 12:01:00 A.M. Shouldn't it?
import Foundation
let now = Date()
var dc = Calendar.current.dateComponents([.year, .month, .day], from: now)
dc.minute = 1
let date = Calendar.current.date(from: dc)
print(DateFormatter.localizedString(from: date!,