Re: [O] parsing time strings from properties

2019-09-22 Thread Matt Price
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

Re: [O] parsing time strings from properties

2019-09-22 Thread Thomas Plass
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

Re: [O] parsing time strings from properties

2019-09-21 Thread Adam Porter
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.

[O] parsing time strings from properties

2019-09-21 Thread Matt Price
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