WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: User_McUser on June 30, 2022, 01:50:08 PM

Title: Typo in sample code in tech Database
Post by: User_McUser on June 30, 2022, 01:50:08 PM
The YmdHms2Human sample function at the link below has a typo. There is one instance of "hour" that should be "xhour" (line 11 overall, 8th line of code)

Just thought I'd point that out. 👍

Article ID: W14752 - https://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/UDF~-~UDS~Library/Time~UDFs+YMDHMS~to~normal~date~conversion.txt (https://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/UDF~-~UDS~Library/Time~UDFs+YMDHMS~to~normal~date~conversion.txt)
Title: Re: Typo in sample code in tech Database
Post by: JTaylor on June 30, 2022, 02:01:04 PM
If you haven't run across it and need to do stuff like this, there is now a TimeFormat() function.

Jim
Title: Re: Typo in sample code in tech Database
Post by: td on June 30, 2022, 02:10:53 PM
That article dates back to 2004. If anything, it should be removed.