Changeset 163
- Timestamp:
- Mar 13, 2007, 4:47:36 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Include/Classes/System/DateTime.ab
r107 r163 3 3 #ifndef __SYSTEM_DATETIME_AB__ 4 4 #define __SYSTEM_DATETIME_AB__ 5 6 5 7 6 Class DateTime … … 11 10 Static MinValue = 316224000000000 As Int64 'Const 12 11 12 Sub DateTime() 13 DateTime(316224000000000) 14 End Sub 15 13 16 Sub DateTime(ticks As Int64) 14 17 Ticks = ticks … … 27 30 End If 28 31 DateTime(316224000000000) 29 This = AddYears(year - 1)32 DateTime( AddYears(year - 1) ) 30 33 31 34 Dim days As Long … … 35 38 Next 36 39 days += day 37 This = AddDays(days - 1)40 DateTime( AddDays(days - 1) ) 38 41 End Sub 39 42 … … 48 51 debug 49 52 End If 53 50 54 DateTime(year, month, day) 51 This = AddHours(hour)52 This = AddMinutes(minute)53 This = AddSeconds(second)55 DateTime( AddHours(hour) ) 56 DateTime( AddMinutes(minute) ) 57 DateTime( AddSeconds(second) ) 54 58 End Sub 55 59 … … 61 65 Sub DateTime(year As Long, month As Long, day As Long, hour As Long, minute As Long, second As Long, millisecond As Long) 62 66 DateTime(year, month, day, hour, minute, second) 63 This = AddMilliseconds(millisecond)67 DateTime( AddMilliseconds(millisecond) ) 64 68 End Sub 65 69
Note:
See TracChangeset
for help on using the changeset viewer.