PoiScript / orgize

A Rust library for parsing org-mode files.
https://poiscript.github.io/orgize/
MIT License
278 stars 34 forks source link

Implement Display trait for Datetime and Timestamp, and share the code with Org formatting #30

Closed calmofthestorm closed 4 years ago

calmofthestorm commented 4 years ago

It is convenient to implement the Display trait, as then users can use the type in format! and write!, call to_string(), etc. I don't think it's as important for "bigger" elements which are unlikely to be needed by a user except when writing output, but timestamps are the sort of thing that may be needed outside the context of an export.

PoiScript commented 4 years ago

Should we close this pull request? It seems to be superseded by #32.

calmofthestorm commented 4 years ago

Sure, we can combine them if you like.