52 string CommandOptionWithTimeArg :: checkArguments()
54 string errstr = CommandOptionWithAnyArg::checkArguments();
56 if (errstr !=
string())
59 vector<string>::size_type vecindex;
60 for(vecindex = 0; vecindex < value.size(); vecindex++)
62 string thisTimeSpec = getTimeSpec(vecindex);
63 if (thisTimeSpec !=
string())
67 scanTime(t, value[vecindex], thisTimeSpec);
72 errstr +=
"\"" + value[vecindex] +
"\" is not a valid time.";
76 errstr +=
"\"" + value[vecindex] +
"\" is not a valid time.";
82 string CommandOptionWithSimpleTimeArg :: getTimeSpec
83 (vector<string>::size_type index)
const
90 thisTimeSpec =
"%m/%d/%Y";
93 thisTimeSpec =
"%Y %j";
96 thisTimeSpec =
"%Y %j %s";