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
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)