unixmilli

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package unixmilli provides functionality for working with Unix timestamps in milliseconds.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Time

type Time int64

Time implements the RFC3339 format.

func FromTime

func FromTime(t time.Time) Time

FromTime converts a time.Time into unix time.

func Now

func Now() Time

Now returns the current time using the RFC3339 format.

func Parse

func Parse(layout, s string) (Time, error)

Parse parses a formatted string and returns the time value it represents using the RFC3339 format.

func Seconds

func Seconds(seconds int64) Time

Seconds creates a Time from Unix seconds.

func (Time) Equal

func (t Time) Equal(t2 Time) bool

func (*Time) Scan

func (t *Time) Scan(value any) (err error)

func (Time) Seconds

func (t Time) Seconds() int64

Seconds returns the Time value as Unix seconds.

func (Time) Time

func (t Time) Time() time.Time

func (Time) Value

func (t Time) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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