time

package
v0.0.0-...-85b7c0f Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleID = `stdgo/time`
)

Variables

This section is empty.

Functions

func AddDuration

func AddDuration(result time.Duration, vals ...time.Duration) time.Duration

func Duration

func Duration(val int64) time.Duration

func Month

func Month(val int) time.Month

func Require

func Require(runtime *goja.Runtime, module *goja.Object)

func SubDuration

func SubDuration(result time.Duration, vals ...time.Duration) time.Duration

func UnixMicro

func UnixMicro(usec int64) time.Time

UnixMicro returns the local Time corresponding to the given Unix time, usec microseconds since January 1, 1970 UTC.

func UnixMilli

func UnixMilli(msec int64) time.Time

UnixMilli returns the local Time corresponding to the given Unix time, msec milliseconds since January 1, 1970 UTC.

func Weekday

func Weekday(val int) time.Weekday

Types

This section is empty.

Jump to

Keyboard shortcuts

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