public static IVariable Add(ScalarDate t, ScalarVal d) { int i = O.GetInt(d); GekkoTime t2 = t.date.Add(i); ScalarDate z = new ScalarDate(t2); return(z); }
public static IVariable Subtract(ScalarDate t, ScalarVal d) { //HMMM, what about rounding up and down here?? int i = O.GetInt(d); GekkoTime t2 = t.date.Add(-i); ScalarDate z = new ScalarDate(t2); return(z); }
public static IVariable Add(ScalarString s, ScalarDate d, bool invert) { GekkoTime gt = O.GetDate(d); string z = null; if (invert) { z = G.FromDateToString(gt) + s._string2; } else { z = s._string2 + G.FromDateToString(gt); } return(new ScalarString(z)); }