From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <346c54679a6cdc9bb557724d8b93bbc6@quintile.net> From: "Steve Simon" Date: Tue, 2 Sep 2014 19:18:39 +0100 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] silly question Topicbox-Message-UUID: 14ae0bc8-ead9-11e9-9d60-3106f5b1d025 > i'm not sure what your particular problem domain is since you don't say True. Strftime is a red herring (sorry), I can use and "date" | getline to generate pretty much any date string I need. The issue is more going the other way. tm2sec in awk is quite complex and hids many pitfalls if you want to do it correctly. My problem is parsing logfiles which contain dates in the form of date(1) / ctime(2). I want to graph stuff over time and so I want a monotonically incrementing number (secs sinc 1/1/70 would be ideal). I have coded this in awk but for one year leap years break - though not by much. This is why I was asking if there was an external app called somthing like tm2sec which calls its eponomymous library function. it seems there isn't one and its the work of 30secs to write one, no problem, I just thought there was one but I had forgotten its name... -Steve