Changeset 2757 for trunk/sources/HeuristicLab.Data/3.3/DateTimeData.cs
- Timestamp:
- 02/08/10 03:43:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data/3.3/DateTimeData.cs
r2694 r2757 32 32 [Item("DateTimeData", "Represents a date and time value.")] 33 33 [Creatable("Test")] 34 public sealed class DateTimeData : ValueTypeData<DateTime>, I StringConvertibleData {34 public sealed class DateTimeData : ValueTypeData<DateTime>, IComparable, IStringConvertibleData { 35 35 public DateTimeData() : base() { } 36 36 public DateTimeData(DateTime value) : base(value) { } … … 44 44 public override string ToString() { 45 45 return Value.ToString("o"); // round-trip format 46 } 47 48 public int CompareTo(object obj) { 49 DateTimeData other = obj as DateTimeData; 50 if (other != null) 51 return Value.CompareTo(other.Value); 52 else 53 return Value.CompareTo(obj); 46 54 } 47 55
Note: See TracChangeset
for help on using the changeset viewer.