helpers

package
v0.9.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2022 License: GPL-3.0 Imports: 4 Imported by: 8

Documentation

Index

Constants

View Source
const (
	MJD_0      float64 = 2400000.5
	MJD_JD2000 float64 = 51544.5
)

Variables

This section is empty.

Functions

func BytesInSlice

func BytesInSlice(a []byte, list [][]byte) bool

func BytesToUint16

func BytesToUint16(b []byte) uint16

func BytesToUint32

func BytesToUint32(b []byte) uint32

func BytesToUint64

func BytesToUint64(b []byte) uint64

func BytesToUints16

func BytesToUints16(b []byte) (res []uint16)

func TimeFromExcelTime

func TimeFromExcelTime(excelTime float64, date1904 bool) time.Time

Convert an excelTime representation (stored as a floating point number) to a time.Time.

func TimeToExcelTime

func TimeToExcelTime(t time.Time, date1904 bool) float64

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?

func TimeToUTCTime

func TimeToUTCTime(t time.Time) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL