public override string execute(Blackfin bf, string[] args) { try { DateTime t = DateTime.Parse(args[0]); if (!bf.SetUnitTime(t)) { return(null); } return("Set unit time"); } catch (FormatException) { throw new CommandArgumentException("Incorrect Date Format"); } }