Documentation ¶
Index ¶
- Constants
- func BytesInSlice(a []byte, list [][]byte) bool
- func BytesToUint16(b []byte) uint16
- func BytesToUint32(b []byte) uint32
- func BytesToUint64(b []byte) uint64
- func BytesToUints16(b []byte) (res []uint16)
- func TimeFromExcelTime(excelTime float64, date1904 bool) time.Time
- func TimeToExcelTime(t time.Time, date1904 bool) float64
- func TimeToUTCTime(t time.Time) time.Time
Constants ¶
View Source
const ( MJD_0 float64 = 2400000.5 MJD_JD2000 float64 = 51544.5 )
Variables ¶
This section is empty.
Functions ¶
func BytesInSlice ¶
func BytesToUint16 ¶
func BytesToUint32 ¶
func BytesToUint64 ¶
func BytesToUints16 ¶
func TimeFromExcelTime ¶
Convert an excelTime representation (stored as a floating point number) to a time.Time.
func TimeToExcelTime ¶
TimeToExcelTime will convert a time.Time into Excel's float representation, in either 1900 or 1904 mode. If you don't know which to use, set date1904 to false. TODO should this should handle Julian dates?
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.