Hacker News new | ask | show | jobs
by cls59 2226 days ago
I wish gawk had a native strptime function. Always seems like an odd omission given strftime is included.
1 comments

If you add the gawkextlib/timex library you can get access to strptime.

https://sourceforge.net/p/gawkextlib/code/ci/master/tree/

Most 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.