I am trying to translate a message generated using C# to JAVA. As a first step, i generated proto file and this is what i got
package Om.Business.Scanner;
message ScannerActivityDetail {
optional string ActivityId = 1;
optional string ContextId = 2;
optional int32 ActivityStart = 3;
optional bcl.DateTime ActivityEnd = 4;
}
How do i interpret bcl.DateTime in java world?
I am using protobuf-net and trying to de-serialize message generated by C# app.
Thanks in advance for your help.
Looking at
bcl.proto, it should be pretty straightforward. Create aMap<DateTime.TimeSpanScale, TimeUnit>in the obvious way, then:You could use Joda Time‘s
DateTimetype in exactly the same way, as it has a constructor accepting alongtoo. (You might want to think about which time zone to specify though…)