[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch for GNU "date"

From: Jack Lloyd
Subject: Patch for GNU "date"
Date: Mon, 15 Oct 2001 13:56:55 -0400 (EDT)


I wrote a simple patch to GNU "date" (based on sh-utils 2.0) to change the
formatting slightly.

Basically, if the environmental variable DATE_DEFAULT_FORMAT is unset, then
the behaviour is as normal. If DATE_DEFAULT_FORMAT is set, then that format
will be used instead of the default one if date has no arguments given to

The reason this is useful is because it's otherwise rather hard to get this
behavior. One can make an shell alias, but then you break trying to give
date an explicit format, like `date +"%s"`

The patch is very simple, a 54 line unified diff (about 1 new line and 4
changed lines), and I have put it into the public domain. Hopefully it's
short enough that if you want to include it in sh-utils, copyright transfer
forms will not be required.



Attachment: date.patch
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]