title: How do I get the current time (local time) in NSIS?
body: <p>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. </p>
  
  <p>There are no built-in functions, and most of the third-party headers or DLLs seem awfully heavyweight for just getting the current time.</p>
  
  <p>What's the most straightforward way to get the current time in an NSIS script, preferably without a third-party library?</p>
  
  <p>(I've answered this with what I'm probably going with, but if anyone has good alternatives please post them.)</p>