001// Licensed under the MIT license. See LICENSE file in the project root for full license information.
002
003package de.bytefish.pgbulkinsert.pgsql.converter;
004
005import de.bytefish.pgbulkinsert.pgsql.utils.TimeStampUtils;
006
007import java.time.LocalDateTime;
008
009public class LocalDateTimeConverter implements IValueConverter<LocalDateTime, Long> {
010    @Override
011    public Long convert(final LocalDateTime dateTime) {
012        return TimeStampUtils.convertToPostgresTimeStamp(dateTime);
013    }
014}