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 , 18 years ago
comment:2 by , 18 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
Resolving as rejected due to lack of activity combined with how trivial the request is.
Note:
See TracTickets
for help on using tickets.

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