Skip to content

Instantly share code, notes, and snippets.

View tupshin's full-sized avatar

Tupshin Harper tupshin

View GitHub Profile
use openfmb_ops_protobuf::openfmb::commonmodule;
fn get_current_datetime() -> Timestamp {
let t = Utc::now();
let tq = commonmodule::TimeQuality {
clock_failure: false,
clock_not_synchronized: false,
leap_seconds_known: true,
time_accuracy: commonmodule::TimeAccuracyKind::Unspecified as i32,
};