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