Opened 14 years ago

Closed 14 years ago

#1509 closed Bug (Fixed)

_Date_Time_FileTimeToStr() Document or Source Code bug

Reported by: anonymous Owned by: Jpm
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc: jason.ross@…


; Encode a file time
$tFile = _Date_Time_EncodeFileTime(@MON, @MDAY, @YEAR, @HOUR, @MIN, @SEC)

MemoWrite("Current date/time .: " & _Date_Time_FileTimeToStr($tFile, 0))

MemoWrite("Current date/time .: " & _Date_Time_FileTimeToStr($tFile, 1))

Current date/time .: 03/05/2010 13:05:46
Current date/time .: 2010/05/03 13:05:46

The documentation says that $bFmt [1] returns yyyy/mm/dd hh:mm:ss.

We can see that it actually returns yyyy/dd/mm hh:mm:ss

...the mm and dd are not returned as documented


Decode a file time to a date/time string

#Include <Date.au3>
_Date_Time_FileTimeToStr(ByRef $tFileTime [, $bFmt = 0])


$tFileTime $tagFILETIME structure
$bFmt [optional]

0 returns mm/dd/yyyy hh:mm:ss (Default)
1 returns yyyy/mm/dd hh:mm:ss

Attachments (0)

Change History (1)

comment:1 Changed 14 years ago by Jpm

  • Milestone set to
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [5775] in version:

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.

Add Comment

Modify Ticket

as closed The owner will remain Jpm.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.