time - Duration vbscript (vbs) function -


Whether a function in a VBSSPT to change a certain number of seconds in a week / day / hour / minute / second time format is? ?

Example: 969234 seconds = 1wk 4days 5hrs 13mins 54secs

  retarded MyDate dim noWeeks dim noDays dim tempWeeks dim pos myDate = DateAdd ("s", 969234, cdT (0)) tempWeeks = FormatNumber (myDate / 7,10) pos = instr (tempWeeks, ".") If position & gt; 1 then tempWeeks = left (myDate, pos -1) end if noWeeks = Cint (tempWeeks) noDays = Cint ((myDate / 7) - noWeeks) * 7) wscript.echo noWeeks & amp; "Wk" & amp; No Day & amp; "Day" & amp; Detopestor ("H", Medet) & amp; "Hours" & amp; Detopestor ("n", prayer) & amp; "Minutes" & amp; Ditpart ("S", Medet) & amp; "Seconds"  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -