why is this strptime example not working?? #1517
Replies: 10 comments 1 reply
-
@jefftemplon looks like #1355 That issue is a bit of an annoyance tbh :(. Problem is I'm using a third-party You're doing nothing wrong, and this should work. It's a bug that it doesn't. I need to do a patch on Miller's fork of the |
Beta Was this translation helpful? Give feedback.
-
Thanks! As a side note, I looked here https://miller.readthedocs.io/en/latest/reference-dsl-time/#custom-formats-strptime-and-strftime and noticed that if I read down a bit further, there is a second, much shorter list of available codes for strptime, that list does not contain I will hold off on trying to make a workaround, pending your investigation. |
Beta Was this translation helpful? Give feedback.
-
Yes, it needs fixing. :(
This isn't top-of-stack at the moment and Miller is a spare-time open-source project so I wouldn't want to keep you waiting for me :( The best workaround at the moment is if you can get two-digit (zero-padded) dates in your input ... but then I see you're using Miller's |
Beta Was this translation helpful? Give feedback.
-
Unfortunately
gives
so there is more work to be done here ... |
Beta Was this translation helpful? Give feedback.
-
Hi, I will work around it otherwise. The tool that's feeding the info to |
Beta Was this translation helpful? Give feedback.
-
@jefftemplon indeed. :( Mlller 5 and below used the C standard library which was of higher quality in this regard. The Go port (Miller 6 and above)
which was released in 2022 was, on the whole, a massive feature improvement. The downgrade has been (More details: it's not the case that the Go standard library has a defective |
Beta Was this translation helpful? Give feedback.
-
Thanks for all your work. I used Miller 3? 4? 5? not sure - for many years (since 2015 AFAICT), only recently decided I should think about upgrading, mostly because some things documented for Miller 6 didn't work in the version I had. It took me a bit of work, but the problem is solved for me at the moment, by having the upstream tool spit out epoch seconds and me parsing them with sec2locatime and supply the correct timezone. |
Beta Was this translation helpful? Give feedback.
-
Glad you could use an upstream data tweak @jefftemplon -- not all people are so fortunate :) |
Beta Was this translation helpful? Give feedback.
-
Related: why does this not work?
|
Beta Was this translation helpful? Give feedback.
-
@torbiak thanks for your answer! |
Beta Was this translation helpful? Give feedback.
-
I use strftime to convert 1970-based number of seconds to a string, then use the exact same format to convert it back: error!
I don't get it! A bug, or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions