Commit graph

5 commits

Author SHA1 Message Date
Petar Kapriš f14ed81d81 Modify the julian package to use the GDate type
Up until now the julian package relied on the time.Time type to
represent Gregorian dates, and julian.Date to represent Julian dates,
however this both looks inconsistent, and is more opaque and complicated
because time.Time carries with it a lot of information we don't care
about.

Therefore this has been modified, now the conversion package has two
types julian.JDate and julian.GDate for their respective calendars.
2024-08-18 15:57:35 +02:00
Petar Kapriš 299832cb4b Add documentation for the julian package 2024-07-23 23:00:30 +02:00
Petar Kapriš 6f6b203c5b Add TimeToJDate with tests 2024-07-22 21:16:24 +02:00
Petar Kapriš d862f6c35d Rename ToTime->JDateToTime 2024-07-22 21:15:20 +02:00
Petar Kapriš bd5c9fe692 Add julian Date package with conversion to time.Time
The julian.Date type will be used within the project to support indexing
of holidays using the Julian calendar, Gregorian dates are implemented
by using time.Time (since it is already gregorian). Currently only
conversion Julian->Gregorian has been implemented, but the opposite will
be added soon.
2024-07-21 00:21:34 +02:00