InStore util to convert an ISO8601 timestamp to integer epoch time.
Last updated 1 year ago
Was this helpful?
Utils.TimeStringToEpoch
function (iso_string)
function
Get the epoch timestamp integer from an string timestamp. Returns an integer representing epoch time.
integer
iso_string
string
ISO8601 string timestamp to convert
local RS = game.ReplicatedStorage:WaitForChild('InStore'); local TimeStringToEpoch = require(RS.Utils.TimeStringToEpoch); print(TimeStringToEpoch('1970-01-01T00:00:00Z')); --> 0