Subject: Re: date feature request
To: None <>
From: Christian Biere <>
List: netbsd-users
Date: 11/14/2006 16:25:08
matthew sporleder wrote:
> You can also do most of this stuff portably with awk.
> Here's an easy example of yesterday: (tested on netbsd and solaris)
> echo|awk 'BEGIN { d = systime() - 86400; } END { print strftime("%c", d) }'

You can do the same with "date -r $timestamp +$format" and you can calculate
using $(()) in a Bourne shell but I think he wanted to parse dates in different
formats, not just print them.