Gets the date and time of an FtpFile entry sourced from an VMS directory listing.

Namespace: Jscape.Ftp
Assembly: Jscape.Ftp (in Jscape.Ftp.dll) Version: 2.4.5.0

Syntax

C#
public virtual DateTime GetDateTime(
	FtpFile file,
	TimeZone zone,
	CultureInfo locale
)
Visual Basic
Public Overridable Function GetDateTime ( _
	file As FtpFile, _
	zone As TimeZone, _
	locale As CultureInfo _
) As DateTime
Visual C++
public:
virtual DateTime GetDateTime(
	FtpFile^ file, 
	TimeZone^ zone, 
	CultureInfo^ locale
)

Parameters

file
Type: Jscape.Ftp..::..FtpFile
The FtpFile
zone
Type: System..::..TimeZone
The TimeZone used when calculating the time. The default timezone is used if not provided.
locale
Type: System.Globalization..::..CultureInfo
The locale to use when parsing the date. The default Locale.US is used if not provided.

Return Value

A date and time, or null if Date or Time values are null.

Exceptions

ExceptionCondition
Jscape.Ftp..::..FtpExceptionIf an error occurs while parsing the entry.

See Also