Is there any simple way to convert a RFC HTTP date into a timestamp in Lua?
\"Sat, 29 Oct 1994 19:43:31 GMT\"
into
783467011
use luadate, you can install it with luarocks.
date = require 'date' local d1 = date('Sat, 29 Oct 1994 19:43:31 GMT') local seconds = date.diff(d1, date.epoch()):spanseconds() print(seconds)