class DbDateUtils {

  @SuppressWarnings("deprecation")
  public static Timestamp toSqlDateTime(LocalDateTime dateTime) {
    ArgumentChecker.notNull(dateTime, "dateTime");
    return new Timestamp(
        dateTime.getYear() - 1900, dateTime.getMonthValue() - 1, dateTime.getDayOfMonth(),
        dateTime.getHour(), dateTime.getMinute(), dateTime.getSecond(), dateTime.getNano());
  }

  protected  DbDateUtils();

}