25.03.2020, 14:18
Here's an example. Timestamp must be a string because 1465839830100400200 cannot be represented as a floating point number without precision loss.
Code:
ts = '1465839830100400200'
tsec = tonumber(ts:sub(1, -10))
tfrac = ts:sub(-9)
date = os.date('!%Y-%m-%dT%H:%M:%S.', tsec) .. tfrac .. 'Z'
log(date)