/// <summary> /// 转换成java解析一致的时间戳 /// </summary> /// <param name="time"></param> /// <returns></returns> public static string ToJavaTimestamp(this DateTime time) { return( (time.ToUniversalTime().Ticks - 621355968000000000) / 10000000)+"000"; }
/// <summary> /// 转换成java解析一致的时间戳 /// </summary> /// <param name="time"></param> /// <returns></returns> public static string ToJavaTimestamp(this DateTime time) { return( (time.ToUniversalTime().Ticks - 621355968000000000) / 10000000)+"000"; }