fastdate

package
v0.0.0-...-86e9f11 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package fastdate implements low-level unix time stamp manipulation that follows the semantics of the Sneller SQL datetime functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecomposedDate

type DecomposedDate struct {
	// contains filtered or unexported fields
}

func (DecomposedDate) Day

func (dd DecomposedDate) Day() uint32

func (DecomposedDate) Month

func (dd DecomposedDate) Month() uint32

func (DecomposedDate) Quarter

func (dd DecomposedDate) Quarter() uint32

func (DecomposedDate) Year

func (dd DecomposedDate) Year() int32

type Timestamp

type Timestamp int64

func (Timestamp) AddDay

func (ts Timestamp) AddDay(val int64) (Timestamp, bool)

func (Timestamp) AddHour

func (ts Timestamp) AddHour(val int64) (Timestamp, bool)

func (Timestamp) AddMicrosecond

func (ts Timestamp) AddMicrosecond(val int64) (Timestamp, bool)

func (Timestamp) AddMillisecond

func (ts Timestamp) AddMillisecond(val int64) (Timestamp, bool)

func (Timestamp) AddMinute

func (ts Timestamp) AddMinute(val int64) (Timestamp, bool)

func (Timestamp) AddMonth

func (ts Timestamp) AddMonth(val int64) (Timestamp, bool)

func (Timestamp) AddQuarter

func (ts Timestamp) AddQuarter(val int64) (Timestamp, bool)

func (Timestamp) AddSecond

func (ts Timestamp) AddSecond(val int64) (Timestamp, bool)

func (Timestamp) AddYear

func (ts Timestamp) AddYear(val int64) (Timestamp, bool)

func (Timestamp) DateBin

func (ts Timestamp) DateBin(origin Timestamp, stride int64) (Timestamp, bool)

func (Timestamp) DateDiffMicrosecond

func (ts Timestamp) DateDiffMicrosecond(origin Timestamp) (Timestamp, bool)

func (Timestamp) DateDiffMonth

func (ts Timestamp) DateDiffMonth(other Timestamp) int64

func (Timestamp) DateDiffParam

func (ts Timestamp) DateDiffParam(origin Timestamp, param uint64) (int64, bool)

func (Timestamp) ExtractDOW

func (ts Timestamp) ExtractDOW() uint32

func (Timestamp) ExtractDOY

func (ts Timestamp) ExtractDOY() uint32

func (Timestamp) ExtractDay

func (ts Timestamp) ExtractDay() uint32

func (Timestamp) ExtractHour

func (ts Timestamp) ExtractHour() uint32

func (Timestamp) ExtractMicrosecond

func (ts Timestamp) ExtractMicrosecond() uint32

func (Timestamp) ExtractMillisecond

func (ts Timestamp) ExtractMillisecond() uint32

func (Timestamp) ExtractMinute

func (ts Timestamp) ExtractMinute() uint32

func (Timestamp) ExtractMonth

func (ts Timestamp) ExtractMonth() uint32

func (Timestamp) ExtractQuarter

func (ts Timestamp) ExtractQuarter() uint32

func (Timestamp) ExtractSecond

func (ts Timestamp) ExtractSecond() uint32

func (Timestamp) ExtractYear

func (ts Timestamp) ExtractYear() int32

func (Timestamp) ToUnixEpoch

func (ts Timestamp) ToUnixEpoch() int64

func (Timestamp) TruncDOW

func (ts Timestamp) TruncDOW(dow uint32) Timestamp

func (Timestamp) TruncDay

func (ts Timestamp) TruncDay() Timestamp

func (Timestamp) TruncHour

func (ts Timestamp) TruncHour() Timestamp

func (Timestamp) TruncMillisecond

func (ts Timestamp) TruncMillisecond() Timestamp

func (Timestamp) TruncMinute

func (ts Timestamp) TruncMinute() Timestamp

func (Timestamp) TruncMonth

func (ts Timestamp) TruncMonth() Timestamp

func (Timestamp) TruncQuarter

func (ts Timestamp) TruncQuarter() Timestamp

func (Timestamp) TruncSecond

func (ts Timestamp) TruncSecond() Timestamp

func (Timestamp) TruncYear

func (ts Timestamp) TruncYear() Timestamp

Jump to

Keyboard shortcuts

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