Modify

Opened 8 years ago

Closed 8 years ago

#1509 closed Bug (Fixed)

_Date_Time_FileTimeToStr() Document or Source Code bug

Reported by: anonymous Owned by: Jpm
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 Changed 8 years ago by Jpm

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

Fixed by revision [5775] in version: 3.3.7.0

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

Action
as closed The owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.