qtime

package
v0.0.0-...-4155a33 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Date2Int

func Date2Int(t *time.Time) int

func GetTimeFormatIntervalArray

func GetTimeFormatIntervalArray(from *time.Time, to *time.Time, layout string, lastday bool, exclude ...time.Weekday) ([]string, error)

func NowUTCPointer

func NowUTCPointer() *time.Time

func NowUTCRFC33399

func NowUTCRFC33399() string

func NowUTCRFC33399Shift

func NowUTCRFC33399Shift(year, month, day int) string

func ParseDuration

func ParseDuration(unit string, interval int64) time.Duration

func ParseTime

func ParseTime(s string) (*time.Time, error)

func ShiftUTCPointer

func ShiftUTCPointer(year, month, day int, delta, trunc time.Duration) *time.Time

func Time2Int64

func Time2Int64(t *time.Time) int64

func TimeInterval

func TimeInterval(t1 *time.Time, t2 *time.Time, duration time.Duration) float64

func TruncateHMS

func TruncateHMS(t *time.Time) *time.Time

func YYYY_MM_dd

func YYYY_MM_dd(t *time.Time) string

func YYYY_MM_dd_HH_mm_ss

func YYYY_MM_dd_HH_mm_ss(t *time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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