Documentation
¶
Index ¶
Constants ¶
View Source
const (
DisplayFormat string = "02/01/2006, 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
func FormatLocal ¶
FormatLocal formats a timestamp as a string using the given format in local time
Types ¶
type Micro ¶
type Micro int64 // // type representing a timestamp in microseconds
func ConvertToMicro ¶
ConvertToMicro converts any Timestamp to Micro
type Milli ¶
type Milli int64 // type representing a timestamp in milliseconds
func ConvertToMilli ¶
ConvertToMilli converts any Timestamp to Milli
type Nano ¶
type Nano int64 // // type representing a timestamp in nanoseconds
func ConvertToNano ¶
ConvertToNano converts any Timestamp to Nano
func Parse ¶
Parse parses a date string using the given format and returns a timestamp of the specified type
func ParseErr ¶
ParseErr parses a date string using the given format and returns a timestamp of the specified type
func ParseF ¶
ParseF parses a date string using the given format and returns a timestamp of the specified type (attaches fields to log)
type Seconds ¶
type Seconds int64 // type representing a timestamp in seconds
func ConvertToSeconds ¶
ConvertToSeconds converts any Timestamp to Seconds
Click to show internal directories.
Click to hide internal directories.