lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 04/01/2015 12:22 AM, Jay Glascoe wrote:
or... more accurately, it was "17:18:17" when I ran it.

On Tue, Mar 31, 2015 at 5:21 PM, Jay Glascoe <jay.glascoe@gmail.com> wrote:
that gives me "23:18:17" when it is "05:18:17", maybe it's my environment?

On Tue, Mar 31, 2015 at 5:13 PM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> I've googled around quite a bit, but there seems to be no easy way to get
> the current local time in Lua.

Try os.date"%H:%M:%S" .




Are you sure you aren't confusing 24 hour to 12 hour am/pm format. You wrote your message at 5:21 PM which just a few minutes after 17:18:17 (AKA 5:18:17 pm)

Just an assumption. Otherwise, good job on hacking Lua so early in the morning.

Thomas