use crate::{DtErr, TimeParts};
use alloc::string::String;
impl TimeParts {
#[inline]
pub fn to_str_ccsds(&self) -> Result<String, DtErr> {
self.to_dt()?.to_str_ccsds(self.scale)
}
pub fn to_str_ccsds_nf(&self, max_precision: usize) -> Result<String, DtErr> {
self.to_dt()?.to_str_ccsds_nf(self.scale, max_precision)
}
#[inline]
pub fn to_ccsds_doy_str(&self) -> Result<String, DtErr> {
self.to_dt()?.to_ccsds_doy_str_nf(self.scale, 18)
}
pub fn to_ccsds_doy_str_nf(&self, max_precision: usize) -> Result<String, DtErr> {
self.to_dt()?.to_ccsds_doy_str_nf(self.scale, max_precision)
}
}