Changeset 166 for Include/Classes/System/DateTime.ab
- Timestamp:
- Mar 13, 2007, 11:55:49 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/DateTime.ab
r163 r166 82 82 83 83 'Copy Constructor 84 Sub DateTime( ByRef datetime As DateTime)84 Sub DateTime(ByRef datetime As DateTime) 85 85 This.m_Date = datetime.m_Date 86 86 End Sub … … 89 89 End Sub 90 90 91 Function Operator + (ByRef value As TimeSpan) As DateTime91 Function Operator + (ByRef value As TimeSpan) As DateTime 92 92 Dim date As DateTime(Ticks + value.Ticks) 93 93 Return date 94 94 End Function 95 95 96 Function Operator - (ByRef value As DateTime) As TimeSpan96 Function Operator - (ByRef value As DateTime) As TimeSpan 97 97 Return TimeSpan.FromTicks(Ticks - value.Ticks) 98 98 End Function 99 99 100 Function Operator - (ByRef value As TimeSpan) As DateTime100 Function Operator - (ByRef value As TimeSpan) As DateTime 101 101 Dim date As DateTime(Ticks - value.Ticks) 102 102 Return date … … 254 254 Return False 255 255 End If 256 End Function 257 258 Override Function GetHashCode() As Long 259 Return HIDWORD(m_Date) Xor LODWORD(m_Date) 256 260 End Function 257 261
Note:
See TracChangeset
for help on using the changeset viewer.