Changeset 1456 for branches/eraser6/BlackBox/Eraser.Util/BlackBox.cs
- Timestamp:
- 1/5/2010 3:10:46 AM (3 years ago)
- File:
-
- 1 edited
-
branches/eraser6/BlackBox/Eraser.Util/BlackBox.cs (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/BlackBox/Eraser.Util/BlackBox.cs
r1454 r1456 33 33 using System.Reflection; 34 34 using System.Collections.ObjectModel; 35 using System.Globalization; 35 36 36 37 namespace Eraser.Util … … 267 268 268 269 //Generate a unique identifier for this report. 269 string crashName = DateTime.Now.ToString( "yyyyMMdd HHmmss.FFF");270 string crashName = DateTime.Now.ToString(CrashReportName, CultureInfo.InvariantCulture); 270 271 string currentCrashReport = Path.Combine(CrashReportsPath, crashName); 271 272 Directory.CreateDirectory(currentCrashReport); … … 439 440 440 441 /// <summary> 442 /// The report name format. 443 /// </summary> 444 internal static readonly string CrashReportName = "yyyyMMdd HHmmss.FFF"; 445 446 /// <summary> 441 447 /// The file name of the memory dump. 442 448 /// </summary> … … 530 536 531 537 /// <summary> 538 /// The timestamp of the report. 539 /// </summary> 540 public DateTime Timestamp 541 { 542 get 543 { 544 return DateTime.ParseExact(Name, BlackBox.CrashReportName, 545 CultureInfo.InvariantCulture); 546 } 547 } 548 549 /// <summary> 532 550 /// The path to the folder containing the report. 533 551 /// </summary>
Note: See TracChangeset
for help on using the changeset viewer.
