时间戳
public static string GetDate(long time)
{
System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1, 0, 0, 0, 0));
DateTime dt = startTime.AddMilliseconds(time);
string t = dt.ToString("yyyy/MM/dd HH:mm");
return t;
}
public static long GetTimeTicks(DateTime time)
{
return (time.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
}