bb date

Rich Felker dalias at aerifal.cx
Thu Sep 7 20:14:37 UTC 2006


On Thu, Sep 07, 2006 at 02:50:10PM -0400, Chey wrote:
> BB's date command seems to only accept two formats for setting the
> date. Are these to formats subject to bb's date command only or should
> those two formats work on other distros as well?
> 
> I'm asking because I cannot set the date with bb's date command and
> use that same command to set the date on my Debian box.
> 
> I'm having trouble creating a portable script to set the date because of this.

There's no such thing as "portably setting the date" since POSIX does
not specify that the date can be changed at all. :) However in terms
of working on most/all legacy implementations and BB, I believe one of
the formats works well. Look at the comments in the source; I seem to
remember them being helpful.

Rich




More information about the busybox mailing list