// Convert Unix timestamp from protobuf message
var timestamp = protoMessage.TimestampMs.FromUnixMs();
Console.WriteLine($"Event occurred at: {timestamp}");
// Convert to Unix timestamp for protobuf
var now = DateTimeOffset.UtcNow;
protoMessage.TimestampMs = now.ToUnixMs();