public Time(DateTime date) { string time = date.ToString("yyyyMMddHHmmss", CultureInfo.InvariantCulture) + "Z"; int num = int.Parse(time.Substring(0, 4)); if ((num < 0x79e) || (num > 0x801)) { this.time = new DerGeneralizedTime(time); } else { this.time = new DerUtcTime(time.Substring(2)); } }