use chrono::prelude::*; use std::io::{stdout, Write}; pub fn dump(text: T, newlines: usize) { print!("{}{}", text.to_string(), "\n".repeat(newlines)); let _ = stdout().flush(); } pub fn now() -> String { let now = Local::now(); now.to_rfc3339_opts(SecondsFormat::Secs, false) }