KDOC 435: daysPerYearの値は何か?
:ID: 20250902T212635 :mtime: 20250902212716 :ctime: 20250902212639
この文書のステータス
- 作成
- <署名>
- レビュー
- <署名>
概要
Go言語の json
packageには不思議な値がある。これはなにか。
https://github.com/golang/go/blob/11f11f2a00aa3149a6ea69a50e7b7b429cf368b7/src/encoding/json/v2/arshal_time.go#L469-L473
// 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
関連
なし。