I'm working with node_redis, and saving timestamps in a redis database using the standard javascript Date.now()
- in miliseconds.
Then I'm running a LUA script in my database using redis' EVAL
command, to cleanup old entries from the database.
Any idea how I can translate the date/time in miliseconds that is stored in the database, to a LUA date/time object?