Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os.date = nil #91

Open
Tricky1975 opened this issue Dec 15, 2017 · 1 comment
Open

os.date = nil #91

Tricky1975 opened this issue Dec 15, 2017 · 1 comment

Comments

@Tricky1975
Copy link

Tricky1975 commented Dec 15, 2017

This line in an old Lua script of mine has never produced an error in any version of Lua, but in go-lua to gives me a "nil value" error

version = os.date('%y.%m.%d')

P.S. Tried it in the Lua command line tool too :)

Lua 5.3.4  Copyright (C) 1994-2017 Lua.org, PUC-Rio
> version = os.date('%y.%m.%d')
> =version
17.12.15
> 
@fbogsany
Copy link
Member

https://github.com/Shopify/go-lua/blob/master/os.go#L26 os.date is not yet implemented.

Tricky1975 added a commit to jcr6/jcr6cli that referenced this issue Dec 15, 2017
When JCR6 in Go is gonna replace the original JCR6 I must keep Shopify/go-lua#91 in mind.
I shall investigate an alternative solution for the meantime. ;)

	modified:   src/jcr6add.go
	modified:   src/jcr6script.go
	modified:   src/jcr6script.lua
Tricky1975 added a commit to Tricky1975/trickyunits_go that referenced this issue Dec 16, 2017
Tricky1975 added a commit to jcr6/jcr6cli that referenced this issue Dec 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants