package julianday
Import Path
github.com/ncruces/julianday (on go.dev)
Dependency Relation
imports 5 packages, and imported by 2 packages
Involved Source Files
Package julianday provides Time to Julian day conversions.
Package-Level Functions (total 7)
AppendFormat is like Format but appends the textual representation to dst
and returns the extended buffer.
Date returns the Julian day number for t,
and the nanosecond offset within that day,
in the range [0, 86399999999999].
Float returns the Julian date for t as a float64.
In the XXI century, this has submillisecond precision.
FloatTime returns the UTC Time corresponding to a Julian date.
Not all date values have a corresponding time value.
In the XXI century, this has submillisecond precision.
Format returns the Julian date for t as a string.
This has nanosecond precision.
Parse parses a formatted Julian date and returns the UTC Time it represents.
This has nanosecond precision.
Time returns the UTC Time corresponding to the Julian day number
and nanosecond offset within that day.
Not all day values have a corresponding time value.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |