It is currently April 18th, 2024, 1:43 pm

os.time example needs updating

Discuss the use of Lua in Script measures.
CitizenDee
Posts: 3
Joined: March 27th, 2020, 11:29 pm

os.time example needs updating

Post by CitizenDee »

Hi,

In the pinned example for os.time ( https://forum.rainmeter.net/viewtopic.php?t=27625 ) the syntax in the text for the table given to os.time is incorrect.
Examples are given as

Code: Select all

myTimeStamp = os.time({year=2001, month=9, day=11, hour=13, minute=46})
where

Code: Select all

minute=46
should be

Code: Select all

min=46
The error is repeated once or twice, but is ok in the attached code example.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: os.time example needs updating

Post by jsmorley »

CitizenDee wrote: March 27th, 2023, 9:33 pm Hi,

In the pinned example for os.time ( https://forum.rainmeter.net/viewtopic.php?t=27625 ) the syntax in the text for the table given to os.time is incorrect.
Examples are given as

Code: Select all

myTimeStamp = os.time({year=2001, month=9, day=11, hour=13, minute=46})
where

Code: Select all

minute=46
should be

Code: Select all

min=46
The error is repeated once or twice, but is ok in the attached code example.
I think I fixed them all, let me know if you find others. Thanks for the help!