Files
iso8601-timestamp/examples/ts_asm.rs
T
2022-01-19 01:13:05 -06:00

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() {}