Internet Direct (Indy)
Home
PreviousUpNext
IsMDTMDate Function

Indicates if a string represents a valid MDTM date and time stamp value.

Pascal
function IsMDTMDate(
    const ADate: String
): Boolean;
Parameters 
Description 
ADate 
Values to examine for a valid MDTM value. 

Boolean - True if the value is a valid MDTM data and time stamp.

IsMDTMDate is a Boolean function used to determine of the string in ADate represents a value in FTP MDTM format. MDTM date format is derived from its use in the UNIX world. MDTM date and time values are represented in the following form: 

 

  yyyymmddhhmmss[+-xxx]

 

Where ‘yyyymmddhhmmss’ is a line of text with the year, month, day, hour, minutes, and seconds for the MDTM file date and time stamp. 

The next part, “[+-xxx]”, is optional time zone information of the FTP client in minutes as an offset relative to UTC. If no time zone info is given, it is assumed that the timestamp represents a valu in the local timezone for the FTP server. 

An example, the following value can be used with MDTM to set the file dat and time to 19 July 1998, 10:30am 29 seconds, and indicates the client is 240 behind UTC. 

 

  19980719103029-240
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.