1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
6 CURRENT_TIME_SQL = "SELECT clock_timestamp()"
9 Time.parse(ActiveRecord::Base.connection.select_value(CURRENT_TIME_SQL)).to_time
12 def db_transaction_time
13 Time.parse(ActiveRecord::Base.connection.select_value('SELECT current_timestamp')).to_time