You've already forked AstralRinth
forked from didirus/AstralRinth
* most of trolley * Switch to trolley for payments * run prepare * fix clippy * fix more * Fix most tests + bitflags * Update src/auth/flows.rs Co-authored-by: Jackson Kruger <jak.kruger@gmail.com> * Finish trolley * run prep for merge * Update src/queue/payouts.rs Co-authored-by: Jackson Kruger <jak.kruger@gmail.com> --------- Co-authored-by: Jackson Kruger <jak.kruger@gmail.com>
10 lines
294 B
Rust
10 lines
294 B
Rust
use chrono::Utc;
|
|
|
|
// this converts timestamps to the timestamp format clickhouse requires/uses
|
|
pub fn get_current_tenths_of_ms() -> i64 {
|
|
Utc::now()
|
|
.timestamp_nanos_opt()
|
|
.expect("value can not be represented in a timestamp with nanosecond precision.")
|
|
/ 100_000
|
|
}
|