/// <summary>
/// 将c# DateTime时间格式转换为Unix时间戳格式
/// </summary>
/// <returns>string</returns>
private static string ConvertDateTimeToString()
{
System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new
System.DateTime(1970, 1, 1));
//除10000调整为13位
long timeStamp = (long)(DateTime.Now.Ticks - startTime.Ticks) / 10000;
string stamp = timeStamp.ToString();
return stamp;
}