epoch

package
v0.0.0-...-49a0fbc Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

converts an epoch/unix timestamp to human readable form.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Epoch

type Epoch struct {
	// contains filtered or unexported fields
}

func New

func New(localTime bool) *Epoch

New returns a new instance of CIDR.

func (*Epoch) Dump

func (e *Epoch) Dump() ([]byte, error)

func (*Epoch) Query

func (e *Epoch) Query(q string) ([]string, error)

parses the query which is a epoch and returns it in human readable

Jump to

Keyboard shortcuts

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