This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
nolongerexistant's profile picture

Two questions here

Started by nolongerexistant, 23 April 2012 - 12:40 PM
nolongerexistant #1
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
OminousPenguin #2
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)
nolongerexistant #3
Posted 23 April 2012 - 05:06 PM
Oh thank you