VGDNIY332BPU4XV76EWOXVLXBZ5E6RXXT7JRWJYDVFBLUFT6U6KAC
if self.0.is_empty() { return Err(time_series_is_empty()) };
if self.0.len() == 1 { return Err(time_series_has_only_one_point()) };
if self.0.is_empty() { return Err(time_series_is_empty(file!(), line!())) };
if self.0.len() == 1 { return Err(time_series_has_only_one_point(file!(), line!())) };
&format!("{}-{}-01", first_date.year(), first_date.month()),
&format!("{}-{}-01", second_date.year(), second_date.month()),
file!(),
line!(),
&format!("{}-{:02}-01", first_date.year(), first_date.month()),
&format!("{}-{:02}-01", second_date.year(), second_date.month()),
///
pub fn time_series_has_only_one_point() -> Error {
pub fn failed_to_read_file(
code_file: &str,
code_line: u32,
filename: &str) -> Error
{
Error(format!(
"[time_series:05:{}:{}] Failed to read file [{}].",
code_file,
code_line,
filename,
))
}
pub fn time_series_has_only_one_point(
code_file: &str,
code_line: u32) -> Error
{