Modify

Opened 18 years ago

Closed 18 years ago

#160 closed Feature Request (Rejected)

FileGetTime - Date UDF compatible format

Reported by: WeaponX Owned by:
Milestone: Component: AutoIt
Version: Severity:
Keywords: filegettime Cc:

Description

FileGetTime string format is not compatible with any of the Date UDF functions. Since this is the only internal function dealing with time I think it would be easier to change than all of the Date* functions.

Can we add an option 3 to output date/time in this format?
"YYYY/MM/DD HH:MM:SS"

Attachments (0)

Change History (2)

comment:1 by Valik, 18 years ago

Why can't you write your own wrapper function around FileGetTime() which formats it how you want? Something like this (dry-coded)

Func _FileGetTime($sFile, $nOption = 0)
    Local $aTime = FileGetTime($sFile, $nOption)
    If @error Then Return SetError(@error, @extended, "")
    Return $aTime[0] & "/" & $aTime[1] & "/" & $aTime[2] & " " & $aTime[3] & ":" & $aTime[4] & ":" & $aTime[5]
EndFunc

comment:2 by Valik, 18 years ago

Resolution: Rejected
Status: newclosed

Resolving as rejected due to lack of activity combined with how trivial the request is.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.