Time format conversion VBS function (a simple 5 minutes job)
$10-30 USD
Concluído
Publicado há mais de 5 anos
$10-30 USD
Pago na entrega
Hey,
I am working on a small VisualBasic Script (.vbs) based utility program and it needs to be completed today and I could use some help with it.
Now I just need a function which will take in an argument, will convert it and return the value.
function Timecode(valueIn)
valueIn is always either
a) an integer (seconds)
b) a timecode string in a format of "HH:MM:SS" (hours, minutes, seconds)
Return value is the other format.
So,
if the argument is 12345 the return value is "03:25:45"
or vice versa,
if the argument is "03:25:45" the return value is 12345.
"00:00:30" = 30
120 = "00:02:00"
etc.
I know I could do that with Floor and Mod, but I suck in math and don't have couple of hours to figure it out. From you it will take few minutes, I',m sure...
You can just write a little VBS script with that function in it and the job is done, ok?