#include "error.h"
#include "getdate.h"
#include "posixtm.h"
+#include "posixver.h"
#include "quote.h"
#include "safe-read.h"
else
{
printf (_("Usage: %s [OPTION]... FILE...\n"), program_name);
- if (POSIX2_VERSION < 200112)
- printf (_(" or: %s [-acm] MMDDhhmm[YY] FILE... (obsolete)\n"),
- program_name);
fputs (_("\
Update the access and modification times of each FILE to the current time.\n\
\n\
fputs (_("\
\n\
Note that the -d and -t options accept different time-date formats.\n\
-"), stdout);
- if (POSIX2_VERSION < 200112)
- fputs (_("\
-Also, the obsolete time-date format differs from both other formats.\n\
"), stdout);
puts (_("\nReport bugs to <bug-fileutils@gnu.org>."));
}
/* The obsolete `MMDDhhmm[YY]' form is valid IFF there are
two or more non-option arguments. */
- if (POSIX2_VERSION < 200112
- && !date_set && 2 <= argc - optind && !STREQ (argv[optind - 1], "--"))
+ if (!date_set && 2 <= argc - optind && !STREQ (argv[optind - 1], "--")
+ && posix2_version () < 200112)
{
newtime = posixtime (argv[optind], PDS_TRAILING_YEAR);
if (newtime != (time_t) -1)