Open worthmine opened 4 years ago
Yes. When strptime is used, before the data is returned, it is passed to my_mini_mktime() https://github.com/Dual-Life/Time-Piece/blob/master/Piece.xs#L164
This does do a little bit of math to correct for day errors.
The docs do say that "it's even smart enough to fix my obvious date bug" at https://metacpan.org/pod/Time::Piece#Date-Parsing but perhaps it could be worded better.
Thank you for fast replying!
I'm sorry that I can't read/write XSs so can't fix this myself.
The parser of this module is more flexible than other Modules. I think it's an advantage.
e.g. DateTime::Format::Mysql can't parse the formats with omission like $t->strptime( "$date 09:00", '%Y-%m-%d %H:%M')
),
must be DateTime::Format::MySQL->parse_datetime("$date 09:00:00")
, it's too redundant.
So, I hope that this issue(not the docs) is fixed. What can I help you? (other than writing XS codes)
when I ran the code like below:
It returns like this:
Is this a specification?