Internet Direct (Indy)
Home
PreviousUpNext
IsIn6MonthWindow Function

Indicates if the date and time value occurs in the preceeding six months.

Pascal
function IsIn6MonthWindow(
    const AMDate: TIdDateTime
): Boolean;
Parameters 
Description 
AMDate 
Date and Time for a file entry in a FTP listing. 

Boolean - True when the file data and time is in the precedding six month window.

IsIn6MonthWindow is a Boolean function used to determine if the date and time value in AMDate represents a value occurring in the preceeding six months. 

IsIn6MonthWindow is used when working with files in an FTP directory listing. By convention, FTP listings omits the year when the value occurs in the preceeding six months. 

IsIn6MonthWindow decodes the date and time portions of AMDate to determine if the value is a candiate for the abbreviated version of the file date and time stamp.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.