Göktuğ Kayaalp <s...@gkayaalp.com> writes: > The function `org-timestamp-format' returns bad values: > > (org-timestamp-format "<2015-10-07 Wed>" "%d %B %Y") > "30 November -001" > (org-timestamp-format "[2015-10-07 Wed]" "%d %B %Y") > "30 November -001" > (org-timestamp-format "[2015-10-07]" "%d %B %Y") > "30 November -001" > (org-timestamp-format "<2015-10-07>" "%d %B %Y") > "30 November -001" > (org-timestamp-format "2015-10-07" "%d %B %Y") > "30 November -001" > (org-timestamp-format (current-time) "%d %B %Y") > "30 November -001" > (org-timestamp-format (org-parse-time-string "[2015-10-07 Wed]") > "%d %B %Y") > "30 November -001"
I think this is because org-timestamp-format works with timestamp objects, as returned by org-element-context, rather than strings. -- Kyle