Open hiroyuki-sato opened 7 years ago
@hiroyuki-sato Does strictly mode
mean ignore_leftover
flag? I'm still not sure that TimestampParser
needs to care about leftover
only.
@muga
Thank you for replying.
YES, It's mean ignore_leftover
flag.
The strict mode
mean if the :leftover
isn't nil, raise an exception.
Or return nil.
I'm not sure much about left side.
If I put no date string on the left side ex) aaa 2017/05/22 23:12:34
.
It returned nil.
Date._strptime("aaa 2017/05/22 23:12:34","%Y/%m/%d %H:%M:%S")
=> nil
It would be considered in embulk-util-timestamp
.
For future discussion.
Current TimeStampParser allows parsing as timestamp the following data.
%Y-%m-%d %H:%M:%S
.2015-01-27 19:23:49 aaa
(aaa is non-time data
)Some users want to use TimestampParser strictly. It is mean that a user wants to error when above data parsed.
JRuby behavior
Ref(Written in Japanese)