org-roam-timestamps
org-roam-timestamps copied to clipboard
Human readable time format related to posix
Currently I add the creation time of an org-file via date: %U
.
I would like to have your modification time also as %U
or another one of the datetime format string options (e.g. %Y-%m-%d %H:%M:%S
).
Would be great to have a solution for that.
Hmmm I'm not sure if you understand exactly what you mean: would you like to be able to add these timestamps to your org-roam-templates, and want a %
string for that?
Yes I want to use the mtime
in an org-roam-tempalte. And of course it should be updated everytime the existing org-file is modified.
Currently the result looks like this
Red, Green, Refactor
:ID: 3a59f870-f57f-4aa9-bc3e-58ca2bed7a93
:ctime: 20210911173359
:mtime: 20210929191008 20210929174704
I would like to have something like this
Red, Green, Refactor
:ID: 3a59f870-f57f-4aa9-bc3e-58ca2bed7a93
:ctime: 2021-09-11 17:33:59
:mtime: 2021-09-29 19:10:08 2021-09-29 17:47:04
Or an alternative 2021-11-20 Sa 21:14
.
My default template looks is this using %U
for the creation date. But I would like to add a modification date there, too.
("d" "default" plain ; default incl. date
"%?"
:if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org"
"#+title: ${title}\n+date: %U")
:unnarrowed t)