Skip to content

Commit

Permalink
Merge pull request #394 from dimastbk/excel-date-refactoring
Browse files Browse the repository at this point in the history
refactoring DateTime(f64) to DateTime(ExcelDateTime)
  • Loading branch information
tafia authored Jan 16, 2024
2 parents 212d373 + 87921de commit 2620510
Show file tree
Hide file tree
Showing 6 changed files with 347 additions and 211 deletions.
5 changes: 2 additions & 3 deletions examples/excel_to_csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ fn write_range<W: Write>(dest: &mut W, range: &Range<Data>) -> std::io::Result<(
Data::String(ref s) | Data::DateTimeIso(ref s) | Data::DurationIso(ref s) => {
write!(dest, "{}", s)
}
Data::Float(ref f) | Data::DateTime(ref f) | Data::Duration(ref f) => {
write!(dest, "{}", f)
}
Data::Float(ref f) => write!(dest, "{}", f),
Data::DateTime(ref d) => write!(dest, "{}", d.as_f64()),
Data::Int(ref i) => write!(dest, "{}", i),
Data::Error(ref e) => write!(dest, "{:?}", e),
Data::Bool(ref b) => write!(dest, "{}", b),
Expand Down
Loading

0 comments on commit 2620510

Please sign in to comment.