From: bat cndos <cndos.bat@gmail.com>
Date: Dec 19, 2008 3:31 PM
Subject: Error report of the function DateToMins of your Batch Function Library
To: Ritchie Lawrence <ritchie@commandline.co.uk>
Hi Ritchie,
This is HAT from China.
I find there's an error in the function DateToMins of your Batch Function Library.
http://www.commandline.co.uk/lib ... ons/datetomins.html
In the line 2-4 of the Example, you used the same variable m for both of month and minute. This will lead to a wrong result. As your script style, it should be:
@echo off & setlocal ENABLEEXTENSIONS
call :GetDate y m d
call :GetTime h n s t
call :DateToMins %y% %m% %d% %h% %n% mins
echo/Minutes elapsed since 1970-01-01 00:00: %mins%
goto :EOF
Could you please verify and update your Batch Function Library?
I am looking forward to you reply.
Best Regards,
HAT |
|