Modify

Opened 16 years ago

Closed 16 years ago

#1509 closed Bug (Fixed)

_Date_Time_FileTimeToStr() Document or Source Code bug

Reported by: anonymous Owned by: J-Paul Mesnage
Milestone: 3.3.7.0 Component: AutoIt
Version: 3.3.4.0 Severity: None
Keywords: Cc: jason.ross@…

Description


; 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


_Date_Time_FileTimeToStr()

Decode a file time to a date/time string

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

Parameters

$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 by J-Paul Mesnage, 16 years ago

Milestone: 3.3.7.0
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed by revision [5775] in version: 3.3.7.0

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


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