タグ

ブックマーク / ericasadun.com (1)

  • ISO-8601, YYYY, yyyy, and why your year may be wrong

    The end of the year is rolling around and it’s time to remind everyone about that yyyy works the way you think it does and YYYY does not. Here’s a quick example to start: Just because you test a format quickly with the current date and get back the result you expect, does not mean you’ve constructed your date format correctly. Speaking of which, BJ Homer points out that you can just use “y”, as “y

    ISO-8601, YYYY, yyyy, and why your year may be wrong
    tsekine
    tsekine 2018/12/27
    LDMLでのフォーマットが出てきたけど、あれは単にLDML上での表現であって、各言語が日時フォーマットをどう実装しているかはまた別の話。LDMLの例は単に「ISO-8601ってどういう意味」の引き合いに出されてるだけ。
  • 1