[nSLUG] The tide turned in Armdale Cove...

Ian Campbell ian at slu.ms
Thu Aug 28 18:52:43 ADT 2008

On Thu, Aug 28, 2008 at 06:39:14PM -0300, Daniel Morrison wrote:
> 2008/8/28 Ian Campbell <ian at slu.ms>:
> > ian at shadow:~$ date -d @1219939674
> > Thu Aug 28 13:07:54 ADT 2008
> > I doubt that's particularly portable though. It doesn't work on FreeBSD.
> Cool -- how did you learn that?  It's not in _my_ man page... !
> A more portable solution would be better, but in practice, 90% of my
> time is in Linux anyway.  Solaris doesn't even allow the '-d' option
> at all...

If you have gawk, it has a wrapper to strftime that you can use

... but that's not portable either, neither nawk nor whatever freebsd
uses by default have it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://nslug.ns.ca/mailman/private/nslug/attachments/20080828/95297a53/attachment-0002.pgp>

More information about the nSLUG mailing list