Documentation ¶
Index ¶
- Constants
- func BuiltinDurationBetween(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinDurationMS(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinDurationNS(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinDurationSeconds(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinElapsed(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinFormatRFC3339(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinFormatRFC3339Nano(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinParseDuration(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinParseRFC3339(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinParseRFC3339Nano(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinSleep(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinTimeAdd(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinTimeEq(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinTimeGT(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinTimeLT(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func BuiltinUTCNow(env *lisp.LEnv, args *lisp.LVal) *lisp.LVal
- func Duration(d time.Duration) *lisp.LVal
- func Get(v *lisp.LVal) (time.Time, bool)
- func GetDuration(v *lisp.LVal) (time.Duration, bool)
- func LoadPackage(env *lisp.LEnv) *lisp.LVal
- func Time(t time.Time) *lisp.LVal
Constants ¶
View Source
const DefaultPackageName = "time"
DeafultPackageName is the package name used by LoadPackage.
Variables ¶
This section is empty.
Functions ¶
func BuiltinDurationBetween ¶
func BuiltinDurationMS ¶
BuiltinDuriationNS returns a float equal to the the number of nanoseconds in the given duration.
func BuiltinDurationNS ¶
BulitinDuriationNS returns an integer equal to the the number of nanoseconds in the given duration.
func BuiltinDurationSeconds ¶
BulitinDurationSecods returns a float equal to the the number of seconds in the given duration.
func BuiltinParseRFC3339Nano ¶
func BuiltinSleep ¶
BulitinSleep sleeps for the given duration before returning.
func GetDuration ¶
GetDuration gets a time.Duration value from v and returns it.
func LoadPackage ¶
LoadPackage adds the time package to env
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.