Skip to content

Time/MicroTime needs a wrapper #7

Open
@kazk

Description

@kazk

/// Time is a wrapper around time.Time which supports correct
/// marshaling to YAML and JSON. Wrappers are provided for many
/// of the factory methods that the time package offers.
///
/// +protobuf.options.marshal=false
/// +protobuf.as=Timestamp
/// +protobuf.options.(gogoproto.goproto_stringer)=false
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Time {
/// Represents seconds of UTC time since Unix epoch
/// 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
/// 9999-12-31T23:59:59Z inclusive.
#[prost(int64, optional, tag="1")]
pub seconds: ::core::option::Option<i64>,
/// Non-negative fractions of a second at nanosecond resolution. Negative
/// second values with fractions must still have non-negative nanos values
/// that count forward in time. Must be from 0 to 999,999,999
/// inclusive. This field may be limited in precision depending on context.
#[prost(int32, optional, tag="2")]
pub nanos: ::core::option::Option<i32>,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions