com.atlassian.jira.database
Interface DatabaseSystemTimeReader

All Known Implementing Classes:
SqlStatementTimeReader, SqlStoredProcedureTimeReader

@ExperimentalApi
public interface DatabaseSystemTimeReader

Reads the current system time from the database.

Since:
6.3.4

Method Summary
 long getDatabaseSystemTimeMillis()
           
 

Method Detail

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.


Copyright © 2002-2014 Atlassian. All Rights Reserved.