Hi, On Mon, 15 Aug 2016 13:34:18 +1200 Jason Haar <jason_h...@trimble.com> wrote:
> I end up with $origDate="15/08/2016 10:26:18 AM", but no $xxtimestamp - so > strptime doesn't like the 'ampm' meethinks? > > Is there any way to do this is a locale-friendly manner? I guess I could go > do some grotty math like "if $ampm=~/^p then add 12 to $hour" and skip that > 'ampm' variable, but I'm still not sure how to take the timezone into > account (without hard-wiring it which I don't want to as I'd like one > config for several DNS servers in different countries) > > Any ideas? Thanks strptime() supports the %p modifier: %p The locale's equivalent of AM or PM. (Note: there may be none.) Regards, Botond ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohodev2dev _______________________________________________ nxlog-ce-users mailing list nxlog-ce-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users