KDOC 435: daysPerYearの値は何か?

:ID: 20250902T212635 :mtime: 20250902212716 :ctime: 20250902212639

この文書のステータス

  • 作成
    • <署名>
  • レビュー
    • <署名>

概要

Go言語の json packageには不思議な値がある。これはなにか。

// daysPerYear is the exact average number of days in a year according to
// the Gregorian calender, which has an extra day each year that is
// a multiple of 4, unless it is evenly divisible by 100 but not by 400.
// This does not take into account leap seconds, which are not deterministic.
const daysPerYear = 365.2425

関連

なし。