tendermint: Add now_utc
method to time::Time
#1058
Labels
domain-types
Anything relating to the creation, modification or removal of domain types
enhancement
New feature or request
Version(s) of tendermint-rs: v0.23.x,
master
Description
From informalsystems/hermes#1665, it's apparent that we should probably provide a mechanism in the
time::Time
struct in thetendermint
crate to construct the current time in UTC, so we can avoid having to import thetime
crate to do that and then convert it to atime::Time
struct.A drawback of this, as pointed out by @mzabaluev, is that it needs to be feature-guarded since it requires
std
.Definition of "done"
When we have a feature-guarded
now_utc
method ontendermint::time::Time
similar to that which thetime
crate provides.The text was updated successfully, but these errors were encountered: