Thanks to Kens and Nathan Weizenbaum, I now have a bit of date sanity achieved on my blog.
Rather than use a call to system — which isn’t as super clean or fast as it could be — I now talk directly to MZScheme.
How? $!
;; Load the lib into mzscheme and grab my date
($ (require (lib "19.ss" "srfi"))
(= p!date ($ (date->string (current-date) "~a, ~d ~b ~Y ~H:~M:~S ~z")))
However, since nobody (and I mean nobody) wants to see that God-awful string for the time of the post, I slice and dice my way into a simpler date using (cut p!date 5 -15).
While it’s not entirely optimal, I do believe that it’s probably better (though less portable) than storing the real “time” and parsing every time the RSS feed is accessed or a page is loaded.