date

package
v0.0.0-...-cfb4354 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Zlib Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DateTag = iolang.BasicTag("Date")

DateTag is the Tag for Date objects.

Variables

This section is empty.

Functions

func ArgAt

func ArgAt(vm *iolang.VM, m *iolang.Message, locals *iolang.Object, n int) (time.Time, *iolang.Object, iolang.Stop)

ArgAt evaluates the nth argument and returns it as a time.Time. If a stop occurs during evaluation, the time will be zero, and the stop status and result will be returned. If the evaluated result is not a Date, the result will be zero, and an exception will be returned with an ExceptionStop.

func New

func New(vm *iolang.VM, date time.Time) *iolang.Object

New creates a new Date object with the given time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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