public static void addtime(ConsoleSystem.Arg arg) { if (TOD_Sky.Instance == null) { return; } DateTime dateTime = TOD_Sky.Instance.Cycle.DateTime; dateTime = dateTime.Add(arg.GetTimeSpan(0)); TOD_Sky.Instance.Cycle.DateTime = dateTime; }
public static void addtime(ConsoleSystem.Arg arg) { if (Object.op_Equality((Object)TOD_Sky.get_Instance(), (Object)null)) { return; } DateTime dateTime = ((TOD_CycleParameters)TOD_Sky.get_Instance().Cycle).get_DateTime(); dateTime = dateTime.Add(arg.GetTimeSpan(0)); ((TOD_CycleParameters)TOD_Sky.get_Instance().Cycle).set_DateTime(dateTime); }