On Thursday 29 of January 2015 16:51:42 Smith M-Brad - msmith wrote:
> I have executed two separate commands to extract a table of contents
> from a CPIO archive where the date/time field look as follows:
> 
> Jun  2  2014
> Aug 20 23:40

The fact that the second item is in future is correct?

> Is there some place that I can set some type of value, export something
> to give me a consistent output every time?

If you want something to adjust GNU cpio behavior, that is not possible.
Have a ook at the long_format function in source.

> Would be quite content with merely the date..
> Jun  2  2014
> Or better
> 2014-06-02

Then something like 'date' command from GNU coreutils could help:

  $ date --date "Jun  2  2014" +"%y-%m-%d"
  14-06-02
  $ date --date "Aug 20 23:40" +"%y-%m-%d"
  15-08-20

Pavel


Reply via email to