I am currently developing a python script to manage tasks in Google Tasks. I would like to insert a task specifying both the date and the time. By going to the docs page, this is what is written:
"due": "A String", # Due date of the task (as a RFC 3339 timestamp). Optional. The due date only records date information; the time portion of the timestamp is discarded when setting the due date. It isn't possible to read or write the time that a task is due via the API.
Am I looking at some old APIs docs, or do anyone know if there is a meaning behind this choice?
Also, in the app (and on the web version, a photo is reported below) it is possible to choose both and time, so why shouldn't we be able to do it programmatically?
As the quote in your question implies, the time
part of due
is not supported in Tasks API
(any time
you provide will be ignored). And there's no intention to support this in the foreseeable future. Setting a task time is only supported on the user-interface.
This functionality was previously requested on Issue Tracker, and Google's response was the following:
We intentionally decided not to include the time features (apart from date) in the API. We're currently not actively improving the API.