Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (76 - 78 of 3856)

Ticket Resolution Summary Owner Reporter
#463 Rejected date.au3 library // _DateToMonth() Gary hunt2alaska
Description

Issue: Will not resolve months June, July, September in a consistent (3 letter) abbreviated format ($ishort= 1).

Cause: (pasted from date.au3) Local $aMonthNumberAbbrev[13] = ["", "Jan", "Feb", "Mar", "Apr", "May", "June", "July", "Aug", "Sept", "Oct", "Nov", "Dec"]

Request: change date.au3 such that "abbreviated" versions of month names are consistently composed of three characters only(?).

#465 Fixed _DateTimeSplit() results cause erroneous calc results when "Seconds" is missing Gary cbruce
Description

I believe that the _DateTimeSplit() function is behaving incorrectly.

AutoIT allows us to use DateTime values that do NOT include "Seconds" in our calculations. But if you use such DateTime values in _DateAdd(), you get erroneous results.

Example:

$x = _DateAdd( 'h', 1, "2008/01/01 01:00")

Results in a value of "2008/01/01 01:59" instead of "2008/01/01 02:00".

The problem lies in the _DateTimeSplit() function, which is inserting "-1" into Time fields when there is missing input.

I believe the correct behavior should be to insert "0" into the Time fields in this condition.

Func _DateTimeSplit($sDate, ByRef $asDatePart, ByRef $iTimePart)
	Local $sDateTime
	Local $x
	; split the Date and Time portion
	$sDateTime = StringSplit($sDate, " T")
	; split the date portion
	If $sDateTime[0] > 0 Then $asDatePart = StringSplit($sDateTime[1], "/-.")
	; split the Time portion
	If $sDateTime[0] > 1 Then
		$iTimePart = StringSplit($sDateTime[2], ":")
		If UBound($iTimePart) < 4 Then ReDim $iTimePart[4]
	Else
		Dim $iTimePart[4]
	EndIf
	; Ensure the arrays contain 4 values
	If UBound($asDatePart) < 4 Then ReDim $asDatePart[4]
	; update the array to contain numbers not strings
	For $x = 1 To 3
		If StringIsInt($asDatePart[$x]) Then
			$asDatePart[$x] = Number($asDatePart[$x])
		Else
			$asDatePart[$x] = -1
		EndIf
		If StringIsInt($iTimePart[$x]) Then
			$iTimePart[$x] = Number($iTimePart[$x])
		Else
;	=============  PROBLEM  =================
			$iTimePart[$x] = -1
;	=============  PROBLEM  =================
;	=============  CHANGE  =================
			$iTimePart[$x] = 0
;	=============  CHANGE  =================
		EndIf
	Next
	Return (1)
EndFunc   ;==>_DateTimeSplit
#485 Fixed missing related links in helpfile Gary Zedna
Description

_WinAPI_CloseHandle _WinAPI_CreateFile _WinAPI_FlushFileBuffers _WinAPI_GetFileSizeEx _WinAPI_ReadFile _WinAPI_SetEndOfFile _WinAPI_SetFilePointer _WinAPI_WriteFile

All these "File operation" WinAPI functions should be linked each to other in their Related helpfile sections.

Note: See TracQuery for help on using queries.