Thank you.
Edit: Well, still off by 1 second often:
Code: Select all
REM Get Script Start Time Using jTimestamp.cmd
CALL jTimestamp -f {ums} -r t1
REM Fancy Time Stamp
for /F "tokens=*" %%a in (
'jTimestamp -d %t1% /F " {WKD} {MTH} {D}, {yyyy} {H12}:{NN}:{SS}{PM}"'
) do (
set Timestamp=%%a
)
set "Timestamp=%Timestamp::00am=am%"
set "Timestamp=%Timestamp::00pm=pm%"
echo %Timestamp%
REM Get Script End Time Using jTimestamp.cmd
CALL jTimestamp -f {ums} -r t2
REM Fancy Time Stamp
for /F "tokens=*" %%a in (
'jTimestamp -d %t2% /F " {WKD} {MTH} {D}, {yyyy} {H12}:{NN}:{SS}{PM}"'
) do (
set Timestamp=%%a
)
set "Timestamp=%Timestamp::00am=am%"
set "Timestamp=%Timestamp::00pm=pm%"
echo %Timestamp%
CALL jTimestamp -d %t2%-%t1% -f " {ud} Days {h} Hours {n} Minutes And {s} Seconds" -u
ECHO.
Edit 2: BTW using "-c "OUS=-1"" does not work either since its not always off.