System.Globalization.CultureInfo culture =System.Globalization.CultureInfo.CreateSpecificCulture("en-US");
DateTime date = DateTime.Parse(project.Variables["time"].Value, culture);
var date2 = DateTime.Now; //Current time
TimeSpan span = date2 - date;
double seconds = span.TotalSeconds;