Exemplo n.º 1
0
 public static void EnsureUniversalTime(this IRow row, DateTimeField field)
 {
     if (!field.IsNull(row))
     {
         field[row] = field[row].Value.ToUniversalTime();
     }
 }
Exemplo n.º 2
0
 public static void ValidateDateRange(this Row row, DateTimeField start, DateTimeField finish)
 {
     if (!start.IsNull(row) &&
         !finish.IsNull(row) &&
         start[row].Value > finish[row].Value)
     {
         throw InvalidDateRangeError(row, start, finish);
     }
 }
Exemplo n.º 3
0
 public static void ValidateDateRange(this IRow row, DateTimeField start, DateTimeField finish,
                                      ITextLocalizer localizer)
 {
     if (!start.IsNull(row) &&
         !finish.IsNull(row) &&
         start[row].Value > finish[row].Value)
     {
         throw InvalidDateRangeError(start, finish, localizer);
     }
 }