diff options
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/mod.rs | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/utils/mod.rs b/src/utils/mod.rs index ab922e3..938e07c 100644 --- a/src/utils/mod.rs +++ b/src/utils/mod.rs @@ -6,24 +6,9 @@ pub use self::prompt_input::*; pub use self::split_line::*; pub use self::tiktoken::cl100k_base_singleton; -use chrono::prelude::*; -use std::io::{stdout, Write}; - -#[macro_export] -macro_rules! print_now { - ($($arg:tt)*) => { - $crate::utils::print_now(&format!($($arg)*)) - }; -} - -pub fn print_now<T: ToString>(text: &T) { - print!("{}", text.to_string()); - let _ = stdout().flush(); -} - pub fn now() -> String { - let now = Local::now(); - now.to_rfc3339_opts(SecondsFormat::Secs, false) + let now = chrono::Local::now(); + now.to_rfc3339_opts(chrono::SecondsFormat::Secs, false) } pub fn get_env_name(key: &str) -> String { |
