dttMacro dtt_new_with_tz
Source macro_rules! dtt_new_with_tz {
($tz:expr) => { ... };
}
Expand description
Creates a new DateTime
instance with the specified timezone.
§Arguments
$tz:expr
: The timezone string.
§Example
use dtt::dtt_new_with_tz;
let dt = dtt_new_with_tz!("CET");
assert_eq!(dt.offset().to_string(), "+01:00:00");