Documentation ¶
Index ¶
- Constants
- type JulianDay
- func (jDN JulianDay) Add(nDays int) JulianDay
- func (jDN JulianDay) Date() (y, m, d int)
- func (tot_days JulianDay) GetYMD() (year, month, day int, err error)
- func (jDN JulianDay) String() string
- func (julianDay JulianDay) String8() string
- func (jDN JulianDay) Sub(j JulianDay) int
- func (jDN JulianDay) UTC() time.Time
- func (jDN JulianDay) Uint32() uint32
- func (jDN JulianDay) Weekbase() JulianDay
- func (jDN JulianDay) Weekday() time.Weekday
Constants ¶
View Source
const (
JULIAN_ADJUSTMENT = 1721425
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JulianDay ¶
type JulianDay uint32
func FromUint32 ¶
convert base 10 uint32 YYYYMMDD to julianDay
func NewJulianDay ¶
newJulianDay
Calc Julian Day with year, month, day year > 0 for AD year<=0, year-1 for BC
func ParseJulianDay ¶
ParseJulianDay Converts from formatted Date Data long julian Date format
format like "CCYYMMDD", "CCYY-MM-DD" C for century, Y for year, M month, D day
Click to show internal directories.
Click to hide internal directories.