Avatar
norio_nomura 6/26/2019 7:26 AM
昨日のDateFormatter、ドキュメントによるとdateFormat文字列には Unicode Technical Standard #35 を使うと書かれてるけど、S Fractional Secondの扱いが Unicode Technical Standard #35 と違ってるんだ。 https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/DataFormatting/Articles/dfDateFormatting10_4.html#//apple_ref/doc/uid/TP40002369-SW13 (edited)
Explains how to use Cocoa formatters to create and validate text in text fields and other cells.
7:27 AM
Unicode Technical Standard #35 によると Fractional Second - truncates (like other time fields) to the count of letters. となってるけど、実際の挙動はtruncateではなくroundになってる。 http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns (edited)