In trying to write some simple logging-to-file for an NSIS installer I had a lot of trouble finding a simple way of getting the current time.
There are no built-in functions, and most of the third-party headers or DLLs seem awfully heavyweight for just getting the current time.
What's the most straightforward way to get the current time in an NSIS script, preferably without a third-party library?
(I've answered this with what I'm probably going with, but if anyone has good alternatives please post them.)