It isn't much as it is part of a bigger API, but I know a lot of people would love to have a real time and date, so I made one, this is part of a bigger API, but I have adapted it to be used on its own.
The functions are:
irltimezones()
This will give you a list of usable timezones, just give this to the irltime / irltimeasync function as an argument and it will get that time, if you leave it blank by default it will get Europe/London, which is UK GMT 0.
irltimeasync(timezone)
This just used http.request instead so you can use os.pullEvent() to get the time.
irltime(timezone)
This stops the program and waits for the time!
irltimeauto()
This will use your IP address to get your timezone and get it back automatically, NOTE: if you are on a server, it is the server that sends the request not your client.
locate()
Gets your position, so country, region, regionname, timeszone, an example is below.
http://pastebin.com/t51fFS3r
Have a go guys :D/>/>/>
It returns a table so you can use
tablename["date"] for full date or tablename
["time"] for time or
tablename["datetime"] for the whole date or you can get the day, month, year, hours, minutes, seconds, just output the table and you can see it :D/>/>/>
Here is what it looks like when it comes back:
{
datetime="2015-06-17 10:42:17",
date="2015-06-17",
time="10:42:17",
year="2015",
month="06",
day="17",
hours="10",
minutes="42",
seconds="17",
}
Example of locate() code:
{
country=United Kingdom,
countrycode=GB,
timezone=Europe/London,
city=Bedford,
regionname=England,
region=ENG
}
So yeah any questions leave them here or PM me :D/>/>/>