protected override long ParseToTicks(string s) { uint ticks = 0; if (!PlcOpenDateConverter.TryParseToTicks(s, out ticks)) { throw new FormatException(); } return((long)ticks); }
public static bool TryParse(string s, out DATE date) { uint ticks = 0; if (PlcOpenDateConverter.TryParseToTicks(s, out ticks)) { date = new DATE(ticks); return(true); } date = null; return(false); }