pub mod app_bsky;
pub mod auth;
pub mod car;
pub mod com_atproto;
pub mod crypto;
pub mod identifiers;
pub mod ipld;
pub mod mst;
pub mod plc;
pub mod repo;
pub mod xrpc;
mod ucan_p256;
mod vendored;
pub fn created_at_now() -> String {
let now = time::OffsetDateTime::now_utc();
let ms = now.millisecond();
let now = now.replace_microsecond(0).unwrap();
let now = now.replace_millisecond(ms).unwrap();
now.format(&time::format_description::well_known::Rfc3339)
.unwrap()
}
#[test]
fn test_created_at_now() {
let ts = created_at_now();
println!("{ts}");
assert_eq!(&ts[4..5], "-");
assert_eq!(&ts[7..8], "-");
assert_eq!(&ts[10..11], "T");
assert_eq!(&ts[ts.len() - 1..ts.len()], "Z");
}