CLIProcessor.cpp   CLIProcessor.cpp 
skipping to change at line 191 skipping to change at line 191
if (!skyDate.isEmpty()) if (!skyDate.isEmpty())
{ {
// validate the argument format, we will tolerate yy yy-mm-dd by removing all -'s // validate the argument format, we will tolerate yy yy-mm-dd by removing all -'s
QRegExp dateRx("\\d{8}"); QRegExp dateRx("\\d{8}");
if (dateRx.exactMatch(skyDate.remove("-"))) if (dateRx.exactMatch(skyDate.remove("-")))
skyDatePart = QDate::fromString(skyDate, "yy yyMMdd").toJulianDay(); skyDatePart = QDate::fromString(skyDate, "yy yyMMdd").toJulianDay();
else else
qWarning() << "WARNING: --sky-date argument has unrecognised format (I want yyyymmdd)"; qWarning() << "WARNING: --sky-date argument has unrecognised format (I want yyyymmdd)";
} }
if (skyTime.isEmpty()) if (!skyTime.isEmpty())
{ {
QRegExp timeRx("\\d{1,2}:\\d{2}:\\d{2}"); QRegExp timeRx("\\d{1,2}:\\d{2}:\\d{2}");
if (timeRx.exactMatch(skyTime)) if (timeRx.exactMatch(skyTime))
skyTimePart = StelUtils::qTimeToJDFraction(Q Time::fromString(skyTime, "hh:mm:ss")); skyTimePart = StelUtils::qTimeToJDFraction(Q Time::fromString(skyTime, "hh:mm:ss"));
else else
qWarning() << "WARNING: --sky-time argument has unrecognised format (I want hh:mm:ss)"; qWarning() << "WARNING: --sky-time argument has unrecognised format (I want hh:mm:ss)";
} }
confSettings->setValue("navigation/startup_time_mode", "pres et"); confSettings->setValue("navigation/startup_time_mode", "pres et");
confSettings->setValue("navigation/preset_sky_time", skyDate Part + skyTimePart); confSettings->setValue("navigation/preset_sky_time", skyDate Part + skyTimePart);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/