Documentation
¶
Index ¶
- func FormatTime(t time.Time, to timeseries.FieldDataType, quoteDateTimeSQL bool) string
- type Epoch
- func (z *Epoch) DecodeMsg(dc *msgp.Reader) (err error)
- func (z Epoch) EncodeMsg(en *msgp.Writer) (err error)
- func (e Epoch) Format(to timeseries.FieldDataType, quoteDateTimeSQL bool) string
- func (z Epoch) MarshalMsg(b []byte) (o []byte, err error)
- func (z Epoch) Msgsize() (s int)
- func (z *Epoch) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Epochs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTime ¶
func FormatTime(t time.Time, to timeseries.FieldDataType, quoteDateTimeSQL bool) string
Types ¶
type Epoch ¶
type Epoch int64
Epoch represents an Epoch timestamp in Nanoseconds and has possible values between 1970/1/1 and 2262/4/12
func FromMilliSecs ¶
func FromNanoSecs ¶
func (Epoch) Format ¶
func (e Epoch) Format(to timeseries.FieldDataType, quoteDateTimeSQL bool) string
Format returns the epoch as a string in the specified format
func (Epoch) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Epochs ¶
type Epochs []Epoch
Epochs is a slice of type Epoch
func (Epochs) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
Click to show internal directories.
Click to hide internal directories.