You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ne...@apache.org on 2022/02/23 19:15:32 UTC
[arrow-rs] branch master updated: Add with_datetime_format to csv WriterBuilder (#1347)
This is an automated email from the ASF dual-hosted git repository.
nevime pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/master by this push:
new ef95e52 Add with_datetime_format to csv WriterBuilder (#1347)
ef95e52 is described below
commit ef95e52c012a97facafbba9bc9eaa4ba3fcee8a3
Author: Sergey Glushchenko <gs...@gmail.com>
AuthorDate: Wed Feb 23 20:15:28 2022 +0100
Add with_datetime_format to csv WriterBuilder (#1347)
---
arrow/src/csv/writer.rs | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arrow/src/csv/writer.rs b/arrow/src/csv/writer.rs
index 7752367..18e5c59 100644
--- a/arrow/src/csv/writer.rs
+++ b/arrow/src/csv/writer.rs
@@ -456,6 +456,12 @@ impl WriterBuilder {
self
}
+ /// Set the CSV file's datetime format
+ pub fn with_datetime_format(mut self, format: String) -> Self {
+ self.datetime_format = Some(format);
+ self
+ }
+
/// Set the CSV file's time format
pub fn with_time_format(mut self, format: String) -> Self {
self.time_format = Some(format);