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

Open
opened 2 months ago by epilys · 0 comments
epilys commented 2 months ago
Owner

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
epilys added the
easy
label 2 months ago
epilys added the
help wanted
label 2 months ago
epilys added the
enhancement
label 2 months ago
epilys added the
JMAP
label 2 months ago
epilys added this to the (deleted) milestone 1 month ago
epilys added this to the First class JMAP support project 1 week ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.