Exemplo n.º 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
     });
 }
Exemplo n.º 2
0
 public static DurationFunctionToken DurationInHours(ExpressionToken start, ExpressionToken end)
 {
     return(new DurationFunctionToken {
         DatePart = FluidSql.DatePart.Hour, Start = start, End = end
     });
 }
Exemplo n.º 3
0
 public static DurationFunctionToken DurationInMilliseconds(ExpressionToken start, ExpressionToken end)
 {
     return(new DurationFunctionToken {
         DatePart = FluidSql.DatePart.Millisecond, Start = start, End = end
     });
 }
Exemplo n.º 4
0
 public static DurationFunctionToken Duration(DatePart datePart, ExpressionToken start, ExpressionToken end)
 {
     return(new DurationFunctionToken
     {
         DatePart = datePart,
         Start = start,
         End = end
     });
 }