Skip to content
Archive of entries posted on 5th September 2006

Get the Current Hour in Batch files

(from the I dislike Windows slightly less than I used to dept.) In a project I’m working on, I needed a way to get the current hour from within a Windows batch file. This sort of thing is trivial on Unix like systems (or using Cygwin with Windows, which wasn’t an option in this case). [...]