C#TimeSpan时间差转换成分钟和秒数
public Form1()
{
InitializeComponent();
aa = DateTime.Now.ToString();
}
string aa;
private void button1_Click(object sender, EventArgs e)
{
double bb = (DateTime.Now - DateTime.Parse(aa)).Ticks / 10000000;//转换成秒
double cc = (DateTime.Now - DateTime.Parse(aa)).TotalMinutes;//转换成double分钟
}