duration

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DurationTag = iolang.BasicTag("Duration")

DurationTag is the Tag for Duration objects.

Variables

This section is empty.

Functions

func ArgAt

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

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

func New

func New(vm *iolang.VM, d time.Duration) *iolang.Object

New creates a new Duration object with the given duration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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