Documentation ¶
Overview ¶
Package fastdate implements low-level unix time stamp manipulation that follows the semantics of the Sneller SQL datetime functions.
Index ¶
- type DecomposedDate
- type Timestamp
- func (ts Timestamp) AddDay(val int64) (Timestamp, bool)
- func (ts Timestamp) AddHour(val int64) (Timestamp, bool)
- func (ts Timestamp) AddMicrosecond(val int64) (Timestamp, bool)
- func (ts Timestamp) AddMillisecond(val int64) (Timestamp, bool)
- func (ts Timestamp) AddMinute(val int64) (Timestamp, bool)
- func (ts Timestamp) AddMonth(val int64) (Timestamp, bool)
- func (ts Timestamp) AddQuarter(val int64) (Timestamp, bool)
- func (ts Timestamp) AddSecond(val int64) (Timestamp, bool)
- func (ts Timestamp) AddYear(val int64) (Timestamp, bool)
- func (ts Timestamp) DateBin(origin Timestamp, stride int64) (Timestamp, bool)
- func (ts Timestamp) DateDiffMicrosecond(origin Timestamp) (Timestamp, bool)
- func (ts Timestamp) DateDiffMonth(other Timestamp) int64
- func (ts Timestamp) DateDiffParam(origin Timestamp, param uint64) (int64, bool)
- func (ts Timestamp) ExtractDOW() uint32
- func (ts Timestamp) ExtractDOY() uint32
- func (ts Timestamp) ExtractDay() uint32
- func (ts Timestamp) ExtractHour() uint32
- func (ts Timestamp) ExtractMicrosecond() uint32
- func (ts Timestamp) ExtractMillisecond() uint32
- func (ts Timestamp) ExtractMinute() uint32
- func (ts Timestamp) ExtractMonth() uint32
- func (ts Timestamp) ExtractQuarter() uint32
- func (ts Timestamp) ExtractSecond() uint32
- func (ts Timestamp) ExtractYear() int32
- func (ts Timestamp) ToUnixEpoch() int64
- func (ts Timestamp) TruncDOW(dow uint32) Timestamp
- func (ts Timestamp) TruncDay() Timestamp
- func (ts Timestamp) TruncHour() Timestamp
- func (ts Timestamp) TruncMillisecond() Timestamp
- func (ts Timestamp) TruncMinute() Timestamp
- func (ts Timestamp) TruncMonth() Timestamp
- func (ts Timestamp) TruncQuarter() Timestamp
- func (ts Timestamp) TruncSecond() Timestamp
- func (ts Timestamp) TruncYear() Timestamp
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) DateDiffMicrosecond ¶
func (Timestamp) DateDiffMonth ¶
func (Timestamp) DateDiffParam ¶
func (Timestamp) ExtractDOW ¶
func (Timestamp) ExtractDOY ¶
func (Timestamp) ExtractDay ¶
func (Timestamp) ExtractHour ¶
func (Timestamp) ExtractMicrosecond ¶
func (Timestamp) ExtractMillisecond ¶
func (Timestamp) ExtractMinute ¶
func (Timestamp) ExtractMonth ¶
func (Timestamp) ExtractQuarter ¶
func (Timestamp) ExtractSecond ¶
func (Timestamp) ExtractYear ¶
func (Timestamp) ToUnixEpoch ¶
func (Timestamp) TruncMillisecond ¶
func (Timestamp) TruncMinute ¶
func (Timestamp) TruncMonth ¶
func (Timestamp) TruncQuarter ¶
func (Timestamp) TruncSecond ¶
Click to show internal directories.
Click to hide internal directories.