So, how would I be able to use os.date() and get a certain value out of it (in my instance, yday)?
It's just a short question :P
COMMUNITY QUESTION
How do I get a certain value out of os.date()?
1 answer
As stated on the wiki:
Format string must be either *t or !*t. *t is local time (only useful on the client), and !*t is UTC.
So, when we are grabbing os.date() a format string must be passed to it, use *t if you would like to get local and !*t to grab UTC time.
osDate = os.date(*t)
yDay = osDate.yday
print(yDay)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
2 things wrong. The first parameter is incorrect, it needs to be os.time, and second thing that is incorrect, is that that is not how you get a value out of a dictionary.
@hiimgoodpack I think I clearly said OS.DATE. os.time just returns the time in seconds since the Epoch.
Unix Epoch*