use crate::{
builtins::TZ_PROVIDER, options::ToStringRoundingOptions, Instant, TemporalResult, TimeZone,
ZonedDateTime,
};
use alloc::string::String;
impl Instant {
pub fn to_ixdtf_string(
&self,
timezone: Option<TimeZone>,
options: ToStringRoundingOptions,
) -> TemporalResult<String> {
self.to_ixdtf_string_with_provider(timezone, options, &*TZ_PROVIDER)
}
pub fn to_ixdtf_writeable(
&self,
timezone: Option<TimeZone>,
options: ToStringRoundingOptions,
) -> TemporalResult<impl writeable::Writeable + '_> {
self.to_ixdtf_writeable_with_provider(timezone, options, &*TZ_PROVIDER)
}
pub fn to_zoned_date_time_iso(&self, time_zone: TimeZone) -> TemporalResult<ZonedDateTime> {
self.to_zoned_date_time_iso_with_provider(time_zone, &*TZ_PROVIDER)
}
}