160 posts
Location
Netherlands
Posted 23 April 2012 - 02:40 PM
HI, im trying to find out how to get the current date if thats possible and also is there a way to check all the connected devices and on what side they are.
Any way to do this? I couldn't find any :S
92 posts
Posted 23 April 2012 - 03:21 PM
Unfortunately the date and time are not exposed to us. In Lua, the os.date() and os.time() functions would be what we want, however in ComputerCraft date is not implemented and time gives the minecraft time.
The only way I know of to get the real date and time is to get it from the web using the http API.
Regarding your second question, see here:
http://computercraft.info/wiki/index.php?title=Peripheral_(API)
160 posts
Location
Netherlands
Posted 23 April 2012 - 05:06 PM
Oh thank you