3 ms·
I wish gawk had a native strptime function. Always seems like an odd omission given strftime is included.
by cls59 6y ago
I wish gawk had a native strptime function. Always seems like an odd omission given strftime is included.
- gav 6y agoIf you add the gawkextlib/timex library you can get access to strptime. https://sourceforge.net/p/gawkextlib/code/ci/master/tree/ https://sourceforge.net/p/gawkextlib/code/ci/master/tree/
- cls59 6y agoMost of the awk scripts I end up writing are for execution by other people on machines I don't have control over. If strptime was in the standard library, I could use it if I knew the target OS was something like "Ubuntu XX.XX or newer, RedHat X or newer". When strptime is in an add-on library, I can't use it.