View Single Post
10/11/14, 02:27 PM   #2
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
It's what timestamp usually means - unix time.

Originally Posted by dopiate View Post
is that format convert-able outside LUA - or maybe I can change it to something easier to work with before it hits the saved variables.
-d
That depends on what you mean by "outside LUA". In Unix/Linux command line, you can use the date command: date -d '@1410642972'. In Python, there are modules time and datetime. Any sensible language has some library to work with unix timestamps.

I wonder what you mean by "something easier to work with". A timestamp is a single number with well-defined meaning, it's not susceptible to peculiarities like other date/time formats (timezone, DST). I think it's best to save timestamps, and only convert for display to users.
  Reply With Quote