timestamp

package
v0.0.0-...-9c1b276 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

package timestamp does date & time conversion (from byte slices)

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnknownTimestampFormat returned when the format is not recognised.
	ErrUnknownTimestampFormat = errors.New("Unknown timestamp format")
)

Functions

func FromFiletime

func FromFiletime(value int64) (t time.Time)

FromFiletime convert a Windows Filetime to Go time. Filetime is expected to be in little endian and so is the input.

func FromUnix

func FromUnix(value int64) (t time.Time)

func FromUnixNsec

func FromUnixNsec(value, nsec int64) (t time.Time)

Types

type TimeConvert

type TimeConvert func(b []byte) (t time.Time)

Jump to

Keyboard shortcuts

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