goltime

package
v0.0.0-...-1bfd785 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timestamp

type Timestamp struct {
	Year, Month, Day, Hour, Min, Sec, MilliSec, MicroSec, NanoSec, PicoSec int
}

the currency for goltime

func CreateTimestamp

func CreateTimestamp(time_point []string) Timestamp

creating Timestamp struct from string array of counts [Y M D h m s]

func TimestampFromHTTPRequest

func TimestampFromHTTPRequest(req *http.Request) Timestamp

creating Timestamp from Request handler of HTTP having formvalues for it under "year", "month", "day", "hour", "min", "sec"

func TimestampNow

func TimestampNow() Timestamp

create Timestamp struct from time.Now

func (*Timestamp) Time

func (timestamp *Timestamp) Time() time.Time

create time.Time from a Timestamp struct

Jump to

Keyboard shortcuts

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