time

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnixNanoTime

type UnixNanoTime time.Time

UnixNanoTime is a custom time type that marshals/unmarshals to/from a string containing the Unix time in nanoseconds.

func (UnixNanoTime) MarshalJSON

func (t UnixNanoTime) MarshalJSON() ([]byte, error)

MarshalJSON converts a UnixNanoTime into a JSON string in RFC3339 format.

func (UnixNanoTime) String

func (t UnixNanoTime) String() string

String returns the time in a human-readable format.

func (*UnixNanoTime) UnmarshalJSON

func (t *UnixNanoTime) UnmarshalJSON(data []byte) error

UnmarshalJSON converts a JSON string with Unix time in nanoseconds into a UnixNanoTime.

Jump to

Keyboard shortcuts

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