tag:blogger.com,1999:blog-1570818906168332967.post3204110441072219916..comments2024-01-09T14:32:49.408+02:00Comments on The Sysadmin Himself: Calculating Time Difference in BatchLevente Röghttp://www.blogger.com/profile/14054822837126238320noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1570818906168332967.post-3929081521441994852013-05-01T08:15:51.144+03:002013-05-01T08:15:51.144+03:00good script to calculate timegood script to calculate timeBeekaygrouphttps://www.blogger.com/profile/02799077504689209856noreply@blogger.comtag:blogger.com,1999:blog-1570818906168332967.post-18124903872580422932011-11-23T17:03:51.466+02:002011-11-23T17:03:51.466+02:00:: format with leading zeroes
if %DiffMS% LSS 10 s...:: format with leading zeroes<br />if %DiffMS% LSS 10 set DiffMS=0%DiffMS!%<br />if %DiffSec% LSS 10 set DiffMS=0%DiffSec%<br />if %DiffMin% LSS 10 set DiffMS=0%DiffMin%<br />if %DiffHrs% LSS 10 set DiffMS=0%DiffHrs%<br /><br />Is OBVIOUS wrong instead it must be:<br /><br />:: format with leading zeroes<br />if %DiffMS% LSS 10 set DiffMS=0%DiffMS!%<br />if %DiffSec% LSS 10 set DiffSec=0%DiffSec%<br />if %DiffMin% LSS 10 set DiffMin=0%DiffMin%<br />if %DiffHrs% LSS 10 set DiffHrs=0%DiffHrs%<br /><br />That SHOULD declare the two other comments ;)<br />But thank you for the rest of the code...sphinx02https://www.blogger.com/profile/00606831752008332959noreply@blogger.comtag:blogger.com,1999:blog-1570818906168332967.post-1725043017178986912011-08-26T01:24:15.984+03:002011-08-26T01:24:15.984+03:00... and it's less nice now since it doesn'...... and it's less nice now since it doesn't calculate task over an hour long properly it seems.SamKookhttps://www.blogger.com/profile/08037416546825962725noreply@blogger.comtag:blogger.com,1999:blog-1570818906168332967.post-77386878377146536842011-08-25T23:41:55.182+03:002011-08-25T23:41:55.182+03:00It's quite nice, but the milliseconds are not ...It's quite nice, but the milliseconds are not calculated.SamKookhttps://www.blogger.com/profile/08037416546825962725noreply@blogger.com