如何解密vb.net中的xml元素? [英] How to decrypt xml element in vb.net ?

查看:71
本文介绍了如何解密vb.net中的xml元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<?xml version="1.0" encoding="UTF-8"?>
-<calls count="31" date="1360309147911"> <call date="1359279658478" photoid="0" name="nish" duration="29" new="1" numbertype="2" modified="1" type="2" number="7998609" iccid="8923001070620096930" modified_time="1360181147995"/>





如何解密日期和时间vb.net?



How to decrypt the dates and time in vb.net ?

推荐答案

所有时间都是相同的数量级且彼此相对接近,因此它们实际上并未加密。



最有可能的是它们只是某个时间点以来某些单位时间的总数。



从某个日期开始,它是秒或毫秒。



1359279658478毫秒= aprox 43。07年(接近一年365.25天)。



1970年1月1日+ 43。07年= 2013年1月某个时候。



最有可能只是标准的unix时间(自1970年1月1日起以毫秒为单位记录时间的系统):



http ://en.wikipedia.org/wiki/Unix_time [ ^ ]



鉴于时区没有记号,你必须假设UCT。



注意:得出确切日期需要使闰年计算正确并考虑时间和夏令时差异。任何现代操作系统都有一个为您处理的功能。
All the times are the same order of magnitude and relatively close to each other, so they aren''t actually encrypted.

Most likely they are just the total number of some units of time since some origin date.

It''s either seconds, or milliseconds, since some date.

1359279658478 millisecond = aprox 43.07 years (approximating a year at 365.25 days).

1 Jan 1970 + 43.07 years = sometime in Jan 2013.

Most likely it''s just standard unix time (a system of recording time as milliseconds since 1 Jan 1970):

http://en.wikipedia.org/wiki/Unix_time[^]

Given that there is no notation for the time zone, you have to assume UCT.

NOTE: Deriving the exact date requires getting leap year calculations correct and accounting for time zond and daylight savings time differences. Any modern operating system has a function that handles that for you.


此站点 System.DateTime的UNIX时间戳 [ ^ ]帮我解读UNIX格式的日期。



在上面的网站上,它使用秒,对于通话日期=1359279658478,请使用毫秒,它会工作。



Foe示例替换dateTime = dateTime.AddSeconds(timestamp);

with dateTime = dateTime.AddMilliseconds(timestamp)
This site UNIX timestamp to System.DateTime[^] help me to decipher the dates which were in UNIX format.

On the above site, it uses seconds, for call date="1359279658478" please use milliseconds,It''ll work.

Foe example replace dateTime = dateTime.AddSeconds(timestamp);
with dateTime = dateTime.AddMilliseconds(timestamp)


这篇关于如何解密vb.net中的xml元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆