Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by a_e_k

8 hours ago

`(insert (format-time-string "%c"))` should do the trick, though you might need to change the format string to taste.

1 comment

a_e_k

Reply

knome  4 hours ago

Oh, definitely. I had had some other shell calls and just followed the pattern. It was fast enough that I never bothered to go back and look up the right way to do it :)

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities