date
A Date
initialized to the same time as the timestamp.
var date: Date { get }
A Date
initialized to the same time as the timestamp.
var date: Date { get }
s13SwiftProtobuf07Google_B10_TimestampV4date20FoundationEssentials4DateVvp
What are these?2256Z
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
struct Google_Protobuf_Timestamp
A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one.
struct Date
Date
represents a single point in time.
init()
init(date: Date)
Creates a new Google_Protobuf_Timestamp
initialized to the same time as the given Date
.
init(roundingTimeIntervalSince1970 timeIntervalSince1970: TimeInterval, rule: FloatingPointRoundingRule = .toNearestOrAwayFromZero)
Creates a new Google_Protobuf_Timestamp
initialized relative to 00:00:00 UTC on 1 January 1970 by a given number of seconds, rounded to the nearest nanosecond according to the given rounding rule.
init(roundingTimeIntervalSinceReferenceDate timeIntervalSinceReferenceDate: TimeInterval, rule: FloatingPointRoundingRule = .toNearestOrAwayFromZero)
Creates a new Google_Protobuf_Timestamp
initialized relative to 00:00:00 UTC on 1 January 2001 by a given number of seconds, rounded to the nearest nanosecond according to the given rounding rule.
init(seconds: Int64 = 0, nanos: Int32 = 0)
Creates a new Google_Protobuf_Timestamp
equal to the given number of seconds and nanoseconds.
static let _protobuf_nameMap: _NameMap
static let protoMessageName: String
var nanos: Int32
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.
var seconds: Int64
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.
var timeIntervalSince1970: TimeInterval { get }
The interval between the timestamp and 00:00:00 UTC on 1 January 1970.
var timeIntervalSinceReferenceDate: TimeInterval { get }
The interval between the timestamp and 00:00:00 UTC on 1 January 2001.
var unknownFields: UnknownStorage
static func == (lhs: Google_Protobuf_Timestamp, rhs: Google_Protobuf_Timestamp) -> Bool
mutating func decodeMessage<D>(decoder: inout D) throws where D : Decoder
func traverse<V>(visitor: inout V) throws where V : Visitor
init(timeIntervalSince1970: TimeInterval)
Creates a new Google_Protobuf_Timestamp
initialized relative to 00:00:00 UTC on 1 January 1970 by a given number of seconds.
init(timeIntervalSinceReferenceDate: TimeInterval)
Creates a new Google_Protobuf_Timestamp
initialized relative to 00:00:00 UTC on 1 January 2001 by a given number of seconds.