Esempio n. 1
0
 public FileInfo(long file_size, int create_timestamp, int crc32, string source_ip_addr)
 {
     this.file_size = file_size;
     //this.create_timestamp = new DateTime(create_timestamp * 1000L);
     this.create_timestamp = ProtoCommon.UnixTimestampToDateTime(create_timestamp);
     this.crc32            = crc32;
     this.source_ip_addr   = source_ip_addr;
 }
Esempio n. 2
0
 protected DateTime dateValue(byte[] bs, int offset, FieldInfo filedInfo)
 {
     //return new DateTime(BitConverter.ToInt64(bs, offset + filedInfo.Offset) * 1000);
     return(ProtoCommon.UnixTimestampToDateTime(ProtoCommon.buff2long(bs, offset + filedInfo.Offset)));
 }