date

package
v0.13.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FromTimeToDaysFormat func(time.Time) string
View Source
var FromTimestampToDaysFormat func(int64) string
View Source
var UntilTimeToDaysFormat func(time.Time) string
View Source
var UntilTimestampToDaysFormat func(int64) string

Functions

func DefaultTimeToDaysFormat

func DefaultTimeToDaysFormat(t time.Time) string

from carbon-clickhouse, port of SlowTimestampToDays, broken symmetic, not always UTC

func DefaultTimestampToDaysFormat

func DefaultTimestampToDaysFormat(ts int64) string

from carbon-clickhouse, port of SlowTimestampToDays, broken symmetic, not always UTC

func MaxTimeToDaysFormat

func MaxTimeToDaysFormat(t time.Time) string

MaxTimeToDaysFormat return formatted maximum (local, UTC) date

func MaxTimestampToDaysFormat

func MaxTimestampToDaysFormat(ts int64) string

MaxTimestampToDaysFormat return formatted maximum (local, UTC) date

func MinTimeToDaysFormat

func MinTimeToDaysFormat(t time.Time) string

MinTimeToDaysFormat return formatted minimum (local, UTC) date

func MinTimestampToDaysFormat

func MinTimestampToDaysFormat(ts int64) string

MinTimestampToDaysFormat return formatted minimum (local, UTC) date

func SetBoth

func SetBoth()

SetBoth() is for mixed SlowTimestampToDays/UTCTimestampToDays (before rebuild tables complete)

func SetDefault

func SetDefault()

SetDefault() is for broken SlowTimestampToDays in carbon-clickhouse

func SetUTC

func SetUTC()

SetUTC() is for UTCTimestampToDays in carbon-clickhouse (see https://github.com/go-graphite/carbon-clickhouse/pull/114)

func UTCTimeToDaysFormat

func UTCTimeToDaysFormat(t time.Time) string

func UTCTimestampToDaysFormat

func UTCTimestampToDaysFormat(timestamp int64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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