Interface DatabaseSystemTimeReader

All Known Implementing Classes:
SqlStatementTimeReader

@ExperimentalApi public interface DatabaseSystemTimeReader
Reads the current system time from the database.
Since:
6.3.4
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
  • Method Details

    • getDatabaseSystemTimeMillis

      long getDatabaseSystemTimeMillis() throws SQLException
      Returns:
      the current system time according to the database in milliseconds. Potentially a database-dependent value (it may not necessarily be number of milliseconds since 1970 but must be in milliseconds from a constant offset).
      Throws:
      SQLException - if a database error occurs.