bool TestArg(String arg) { try { FitsDate fd = new FitsDate(arg); return(true); } catch (Exception e) { return(false); } }
bool TestArg(String arg) { try { FitsDate fd = new FitsDate(arg); return true; } catch (Exception e) { return false; } }
public static void TestArgs(String[] args) { for (int i = 0; i < args.Length; i++) { try { FitsDate fd = new FitsDate(args[i]); Console.Out.WriteLine("\"" + args[i] + "\" => " + fd + " => " + fd.ToDate()); } catch (Exception e) { Console.Error.WriteLine("Date \"" + args[i] + "\" threw " + e.GetType().FullName + "(" + e.Message + ")"); } } }