timestamp

package
v0.0.0-...-c6cbf5f Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DBLayout = "2006-01-02T15:04:05.999999999"

DBLayout is a time layout that usually comes from Airbyte database sources

View Source
const DashDayLayout = "2006-01-02"

DashDayLayout is a Day format with dash delimiter of time.Time

View Source
const DayLayout = "20060102"

DayLayout is a Day format of time.Time

View Source
const GolangLayout = "2006-01-02T15:04:05-0700"

GolangLayout is a default golang layout that is returned on String() without formatting

View Source
const Key = "_timestamp"

Key is a default key and format of event timestamp

View Source
const Layout = "2006-01-02T15:04:05.000000Z"

Layout is an ISO date time format. Note: for parsing use time.RFC3339Nano.

View Source
const LogsLayout = "2006-01-02 15:04:05"

LogsLayout is a date time representation for log records prefixes

View Source
const MonthLayout = "200601"

MonthLayout is a Month format of time.Time

Variables

This section is empty.

Functions

func FreezeTime

func FreezeTime()

func MustParseTime

func MustParseTime(layout, value string) time.Time

func Now

func Now() time.Time

func NowUTC

func NowUTC() string

NowUTC returns ISO string representation of current UTC time

func ParseISOFormat

func ParseISOFormat(t string) (time.Time, error)

ParseISOFormat returns time.Time from ISO time string representation

func SetFreezeTime

func SetFreezeTime(t time.Time)

func ToISOFormat

func ToISOFormat(t time.Time) string

ToISOFormat returns ISO string representation of input time.Time

func UnfreezeTime

func UnfreezeTime()

Types

This section is empty.

Jump to

Keyboard shortcuts

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