Skip to content

Commit

Permalink
Merge pull request #106 from Valentin-Kaiser/julian-date-conversion
Browse files Browse the repository at this point in the history
Fixed Julian date conversion rounding behavior
  • Loading branch information
Valentin-Kaiser authored Feb 16, 2024
2 parents c728590 + c848fd6 commit fb4d17a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dbase/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ func julianDate(y, m, d int) int {
func julianToDate(jd int) (int, int, int) {
l := jd + 68569
n := (4 * l) / 146097
l -= (146097*n + 3) / 4
l = l - (146097*n+3)/4
i := (4000 * (l + 1)) / 1461001
l -= (1461*i)/4 + 31
l = l - (1461*i)/4 + 31
j := (80 * l) / 2447
d := l - (2447*j)/80
l = j / 11
Expand Down
1 change: 0 additions & 1 deletion dbase/io.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
// - WindowsIO (for direct file access with Windows)
// - UnixIO (for direct file access with Unix)
// - GenericIO (for any custom file access implementing io.ReadWriteSeeker)
// The IO interface can be implemented for any custom file access.
type IO interface {
OpenTable(config *Config) (*File, error)
Close(file *File) error
Expand Down

0 comments on commit fb4d17a

Please sign in to comment.