Browse Source

Added expression function for DateTime.MinValue

Kenric Nugteren 4 tháng trước cách đây
mục cha
commit
b92e542903
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      InABox.Core/Expression/DateFunctions.cs

+ 1 - 0
InABox.Core/Expression/DateFunctions.cs

@@ -12,6 +12,7 @@ namespace InABox.Core
         {
             CoreExpression.RegisterFunction("Now", "Returns the current date and time.", GROUP, new string[] {}, (p, vars, c) => DateTime.Now);
             CoreExpression.RegisterFunction("Today", "Returns the current date.", GROUP, new string[] {}, (p, vars, c) => DateTime.Today);
+            CoreExpression.RegisterFunction("DateTime_MinValue", "Returns the minimum value for a date and time.", GROUP, new string[] {}, (p, vars, c) => DateTime.MinValue);
         }
     }
 }