Home
last modified time | relevance | path

Searched refs:tspb (Results 1 – 4 of 4) sorted by relevance

/external/golang-protobuf/ptypes/
Dtimestamp_test.go40 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 …]
Dtimestamp.go41 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/
Dtimestamp.go41 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/
Djsonpb_test.go51 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 …]