Modify ↓
Opened 14 years ago
Closed 13 years ago
#1897 closed Bug (Wont Fix)
_DateDiff(), Suggestion (minor fix), Returns Double type instead of Int.
Reported by: | mvg | Owned by: | Gary |
---|---|---|---|
Milestone: | Component: | Standard UDFs | |
Version: | 3.3.6.1 | Severity: | None |
Keywords: | Date.au3 _DateDiff | Cc: |
Description
UDF: Date.au3
Issue:
_DateDiff() returns Double type instead of Int type.
Original:
Local $aDaysDiff = _DateToDayValue($asEndDatePart[1], $asEndDatePart[2], $asEndDatePart[3]) - _DateToDayValue($asStartDatePart[1], $asStartDatePart[2], $asStartDatePart[3])
Modifications:
1) var rename: $aDaysDiff -> $iDaysDiff (only used in _DateDiff() function)
2) code change: +Int(...)
Local $iDaysDiff = int(_DateToDayValue($asEndDatePart[1], $asEndDatePart[2], $asEndDatePart[3]) - _DateToDayValue($asStartDatePart[1], $asStartDatePart[2], $asStartDatePart[3]))
Additional:
3) var rename: $iJulianDate -> $nJulianDate (all functions)
(#870 ... Naa, that can't be it.)
Attachments (0)
Change History (1)
comment:1 Changed 13 years ago by Jon
- Resolution set to Wont Fix
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.