Time Converter Module

I was bored, so I made this quick time converter. It doesn’t support multi-digit numbers, and its format is similar to a discord bots’ mute command.

ShortTime.rbxl (32.8 KB)
Example:

local st = require(script.Parent.ShortTime).new("9s"):read()

print("test")
wait(st)
print("done waiting")

I thought the concept was cool, but it could definitely use some improvement.

Seems like an awfully long-winded way of going about wait(9)? Not entirely sure it warrants an entire class, but rather just a function (or set of).

It was an example, and the idea is making it easier to type, for example, “3d” for 3 days, instead of having to look up 259200.

I dont really see a use for this since shorter times such as seconds since task.wait exists. Longer times such as minutes and hours can be done manually as well by simply typing in task.wait(60 / numberOfMinutes) and vice versa.