Sfoglia il codice sorgente

Added expression function for DateTime.MinValue

Kenric Nugteren 4 mesi fa
parent
commit
b92e542903
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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);
         }
     }
 }