atproto made easy crates.io/crates/jacquard

Expose dt value on jacquard_common Datetime #27

Closed nonbinary.computer
Closed opened by nonbinary.computer

I have need to access the inner dt value on jacquard_common::types::datetime::Datetime because I want to convert to raw timestamp seconds. Right now the current implementation requires me to access the string representation of the Datetime and then re-parse it into a chrono DateTime, when instead I could just be reading the pre-existing value from the jacquard type.

it should be better documented, but jacquard datetime has AsRef<chrono::DateTime> but a milliseconds method wouldn't go amiss either

Sign up or Sign in to add to the discussion.