mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-19 16:15:07 +00:00
21 lines
436 B
C++
21 lines
436 B
C++
/*
|
|
* Copyright (C) 2015-present ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: LicenseRef-ScyllaDB-Source-Available-1.1
|
|
*/
|
|
|
|
#include <fmt/chrono.h>
|
|
|
|
#include "mutation/timestamp.hh"
|
|
|
|
#include "clocks-impl.hh"
|
|
|
|
std::atomic<int64_t> clocks_offset;
|
|
|
|
std::string format_timestamp(api::timestamp_type ts) {
|
|
std::chrono::system_clock::time_point when{api::timestamp_clock::duration(ts)};
|
|
return fmt::format("{:%Y/%m/%d %T}", when);
|
|
}
|