Searched refs:tspb (Results 1 – 4 of 4) sorted by relevance
/external/golang-protobuf/ptypes/ |
D | timestamp_test.go | 40 tspb "github.com/golang/protobuf/ptypes/timestamp" packageName 44 ts *tspb.Timestamp 49 {&tspb.Timestamp{Seconds: 0, Nanos: 0}, true, utcDate(1970, 1, 1)}, 51 {&tspb.Timestamp{Seconds: math.MinInt64, Nanos: math.MinInt32}, false, 54 {&tspb.Timestamp{Seconds: math.MinInt64, Nanos: 0}, false, time.Unix(math.MinInt64, 0).UTC()}, 56 {&tspb.Timestamp{Seconds: minValidSeconds, Nanos: 0}, true, utcDate(1, 1, 1)}, 59 {&tspb.Timestamp{Seconds: math.MaxInt64, Nanos: math.MaxInt32}, false, 62 {&tspb.Timestamp{Seconds: math.MaxInt64, Nanos: 1e9 - 1}, false, 65 {&tspb.Timestamp{Seconds: maxValidSeconds - 1, Nanos: 1e9 - 1}, true, 68 {&tspb.Timestamp{Seconds: maxValidSeconds, Nanos: 0}, false, time.Unix(maxValidSeconds, 0).UTC()}, [all …]
|
D | timestamp.go | 41 tspb "github.com/golang/protobuf/ptypes/timestamp" packageName 63 func validateTimestamp(ts *tspb.Timestamp) error { 90 func Timestamp(ts *tspb.Timestamp) (time.Time, error) { 103 func TimestampNow() *tspb.Timestamp { 113 func TimestampProto(t time.Time) (*tspb.Timestamp, error) { 114 ts := &tspb.Timestamp{ 126 func TimestampString(ts *tspb.Timestamp) string {
|
/external/syzkaller/vendor/github.com/golang/protobuf/ptypes/ |
D | timestamp.go | 41 tspb "github.com/golang/protobuf/ptypes/timestamp" packageName 63 func validateTimestamp(ts *tspb.Timestamp) error { 90 func Timestamp(ts *tspb.Timestamp) (time.Time, error) { 103 func TimestampNow() *tspb.Timestamp { 113 func TimestampProto(t time.Time) (*tspb.Timestamp, error) { 116 ts := &tspb.Timestamp{ 128 func TimestampString(ts *tspb.Timestamp) string {
|
/external/golang-protobuf/jsonpb/ |
D | jsonpb_test.go | 51 tspb "github.com/golang/protobuf/ptypes/timestamp" packageName 493 …{"Timestamp", marshaler, &pb.KnownTypes{Ts: &tspb.Timestamp{Seconds: 14e8, Nanos: 21e6}}, `{"ts":"… 494 …{"Timestamp", marshaler, &pb.KnownTypes{Ts: &tspb.Timestamp{Seconds: 14e8, Nanos: 0}}, `{"ts":"201… 558 {&pb.KnownTypes{Ts: &tspb.Timestamp{Seconds: 1, Nanos: 1}}, false}, 559 {&pb.KnownTypes{Ts: &tspb.Timestamp{Seconds: 1, Nanos: -1}}, true}, 560 {&pb.KnownTypes{Ts: &tspb.Timestamp{Seconds: 1, Nanos: 1000000000}}, true}, 764 …{"Timestamp", Unmarshaler{}, `{"ts":"2014-05-13T16:53:20.021Z"}`, &pb.KnownTypes{Ts: &tspb.Timesta… 765 …{"Timestamp", Unmarshaler{}, `{"ts":"2014-05-13T16:53:20Z"}`, &pb.KnownTypes{Ts: &tspb.Timestamp{S… 766 …Unmarshaler{}, `{"ts": "2014-05-13T16:53:20\u005a"}`, &pb.KnownTypes{Ts: &tspb.Timestamp{Seconds: … 767 …rshaler{}, `{"ts":"1969-12-31T23:59:58.999999995Z"}`, &pb.KnownTypes{Ts: &tspb.Timestamp{Seconds: … [all …]
|