@ExperimentalApi public interface

DatabaseSystemTimeReader

com.atlassian.jira.database.DatabaseSystemTimeReader
Known Indirect Subclasses

@ExperimentalApi

This interface is considered usable by external developers but its contracts have not stabilized.

Experimental APIs may be changed at any time before being marked @Internal or @PublicApi.

Class Overview

Reads the current system time from the database.

Summary

Public Methods
long getDatabaseSystemTimeMillis()

Public Methods

public long getDatabaseSystemTimeMillis ()

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.