mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
12 lines
379 B
Rust
12 lines
379 B
Rust
pub use common_utils::{collect_missing_value_keys, newtype};
|
|
|
|
#[macro_export]
|
|
macro_rules! get_formatted_date_time {
|
|
($date_format:tt) => {{
|
|
let format = time::macros::format_description!($date_format);
|
|
time::OffsetDateTime::now_utc()
|
|
.format(&format)
|
|
.change_context($crate::core::errors::ConnectorError::InvalidDateFormat)
|
|
}};
|
|
}
|