Exemple #1
0
 public static MakeDateFunctionToken MakeDate(ExpressionToken year, ExpressionToken month, ExpressionToken day,
                                              ExpressionToken hour = null, ExpressionToken minute = null, ExpressionToken second = null)
 {
     return(new MakeDateFunctionToken
     {
         Year = year,
         Month = month,
         Day = day,
         Hour = hour,
         Minute = minute,
         Second = second
     });
 }
Exemple #2
0
 public static DurationFunctionToken DurationInHours(ExpressionToken start, ExpressionToken end)
 {
     return(new DurationFunctionToken {
         DatePart = FluidSql.DatePart.Hour, Start = start, End = end
     });
 }
Exemple #3
0
 public static DurationFunctionToken DurationInMilliseconds(ExpressionToken start, ExpressionToken end)
 {
     return(new DurationFunctionToken {
         DatePart = FluidSql.DatePart.Millisecond, Start = start, End = end
     });
 }
Exemple #4
0
 public static DurationFunctionToken Duration(DatePart datePart, ExpressionToken start, ExpressionToken end)
 {
     return(new DurationFunctionToken
     {
         DatePart = datePart,
         Start = start,
         End = end
     });
 }