mirror of
https://github.com/stoatchat/iso8601-timestamp.git
synced 2026-07-01 21:45:22 -04:00
16 lines
301 B
Rust
16 lines
301 B
Rust
use iso8061_timestamp::{formats::Full, Timestamp, TimestampStr};
|
|
|
|
#[inline(never)]
|
|
#[no_mangle]
|
|
pub fn format_iso8061(ts: Timestamp) -> TimestampStr<Full> {
|
|
ts.format()
|
|
}
|
|
|
|
#[inline(never)]
|
|
#[no_mangle]
|
|
pub fn parse_iso8061(ts: &str) -> Option<Timestamp> {
|
|
Timestamp::parse(ts)
|
|
}
|
|
|
|
fn main() {}
|