org.duckdb.DuckDBDate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of duckdb_jdbc Show documentation
Show all versions of duckdb_jdbc Show documentation
A JDBC-Compliant driver for the DuckDB data management system
The newest version!
package org.duckdb;
import java.sql.Date;
import java.time.LocalDate;
import java.time.temporal.ChronoUnit;
public class DuckDBDate {
private final long daysSinceEpoch;
public DuckDBDate(Date date) {
this.daysSinceEpoch = LocalDate.ofEpochDay(0).until(date.toLocalDate(), ChronoUnit.DAYS);
}
public long getDaysSinceEpoch() {
return daysSinceEpoch;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy