many thanks to both of you. Yours was very interesting to read, Thomas, but
ts makes it quite a bit easier to write:
(defun o-l-date-to-timestamp (date)
"use ts.el date parse functions return an ISO-compatible
timestamp for transmission to Canvas via API. DATE is a string,
usually of the form
Hi,
Matt Price wrote at 16:27 on September 21, 2019:
:
: :DUE_AT: 2019-09-26
:
: ...
:
: I'm wondering though how hard
: it would be to get the current time zone -- or the time zone that the course
is taught in -- from
: emacs, and construct the string from that value.
This'll return the
For parsing timestamps, you may find this helpful:
https://github.com/alphapapa/ts.el
See e.g. functions ts-parse-org and ts-parse-org-fill.
I use a very simple property in my assignment descriptions to set the
assignment due date:
:DUE_AT: 2019-09-26
I then pass this to an API which expects a date parameter like
`2019-09-26T23:59:59-04:00`. Since I only work in one time zone, I can
just concat the property value with the additional