diff options
author | xuri <xuri.me@gmail.com> | 2018-12-15 00:08:55 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2018-12-15 00:08:55 +0800 |
commit | e728ff14981bda19a18a830e416290cecc5a269e (patch) | |
tree | 47fb515de1164d129654a29cd4f92c01cbe2e431 /date.go | |
parent | 62fbc216a7caa7e2932062c0f3554713dafe4c82 (diff) |
Fixes #308, refactor `NewSheet()`, `DeleteSheet()`, `SetActiveSheet()` and `GetActiveSheetIndex()`
Diffstat (limited to 'date.go')
-rw-r--r-- | date.go | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -90,12 +90,13 @@ func julianDateToGregorianTime(part1, part2 float64) time.Time { return time.Date(year, time.Month(month), day, hours, minutes, seconds, nanoseconds, time.UTC) } -// doTheFliegelAndVanFlandernAlgorithm; By this point generations of programmers have repeated the algorithm sent -// to the editor of "Communications of the ACM" in 1968 (published in CACM, -// volume 11, number 10, October 1968, p.657). None of those programmers seems -// to have found it necessary to explain the constants or variable names set -// out by Henry F. Fliegel and Thomas C. Van Flandern. Maybe one day I'll buy -// that jounal and expand an explanation here - that day is not today. +// doTheFliegelAndVanFlandernAlgorithm; By this point generations of +// programmers have repeated the algorithm sent to the editor of +// "Communications of the ACM" in 1968 (published in CACM, volume 11, number +// 10, October 1968, p.657). None of those programmers seems to have found it +// necessary to explain the constants or variable names set out by Henry F. +// Fliegel and Thomas C. Van Flandern. Maybe one day I'll buy that jounal and +// expand an explanation here - that day is not today. func doTheFliegelAndVanFlandernAlgorithm(jd int) (day, month, year int) { l := jd + 68569 n := (4 * l) / 146097 |