Implement UtcDate <-> Unix timestamp conversions for JMAP #90

Closed
opened 2020-08-06 20:54:12 +03:00 by Manos Pitsidianakis · 0 comments

Jmap uses RFC3339 formatted dates. In melib, unix timestamps are used internally. RFC3339 -> timestamp is implemented at melib::datetime::rfc3339_to_timestamp. The reverse operation allows dates to be used in search queries (see melib::backends::jmap::objects::email)

resources

Jmap uses RFC3339 formatted dates. In `melib`, unix timestamps are used internally. RFC3339 -> timestamp is implemented at `melib::datetime::rfc3339_to_timestamp`. The reverse operation allows dates to be used in search queries (see `melib::backends::jmap::objects::email`) ## resources - The JSON Meta Application Protocol (JMAP) - Date and UtcDate types https://tools.ietf.org/html/rfc8620#page-7 - Date and Time on the Internet: Timestamps https://tools.ietf.org/html/rfc3339 - `melib::datetime::rfc3339_to_timestamp` https://git.meli.delivery/meli/meli/src/commit/c88eac1cc50750c74ae66181a14734bec5cb136a/melib/src/datetime.rs#L243 - `Query` to `Email` `Filter` conversion https://git.meli.delivery/meli/meli/src/commit/c88eac1cc50750c74ae66181a14734bec5cb136a/melib/src/backends/jmap/objects/email.rs#L580
Manos Pitsidianakis added the
easy
help wanted
enhancement
JMAP
labels 2020-08-06 20:54:12 +03:00
Manos Pitsidianakis added this to the (deleted) milestone 2020-09-19 14:31:26 +03:00
Manos Pitsidianakis added this to the First class JMAP support project 2020-10-16 15:03:07 +03:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: meli/meli#90
There is no content yet.