NET FTP Library
HourDifference Property
Example 






KellermanSoftware.NetFtpLibrary Namespace > FTP Class : HourDifference Property
The difference in hours between the local time and the FTP Server Time. See the CalcHourDifference to automatically calculate the hour difference between the local PC and the FTP Server.
Syntax
'Declaration
 
Public Overridable ReadOnly Property HourDifference As System.Double
'Usage
 
Dim instance As FTP
Dim value As System.Double
 
value = instance.HourDifference
public virtual System.double HourDifference {get;}
public read-only property HourDifference: System.Double; virtual; 
public function get HourDifference : System.double
public: __property virtual System.double get_HourDifference();
public:
virtual property System.double HourDifference {
   System.double get();
}
Example
FTP ftp = new FTP(); //Trial Mode            
//FTP ftp = new FTP("place user name here", "place license key here");
 
// set the name of the FTP server( its URL )
ftp.HostAddress = "ftp.fsz.bme.hu"; // a hungarian university. change this to your ftp server
ftp.UserName = "anonymous"; // replace with your user name
ftp.Password = "user@mail.com"; // replace with your password
 
//Calculate the hour difference between this PC and the FTP Server
ftp.CalcHourDifference();
System.Console.WriteLine("The difference in hours is {0}", ftp.HourDifference);
Dim ftp As FTP = New FTP() 'Trial Mode
'FTP ftp = new FTP("place user name here", "place license key here");
 
' set the name of the FTP server( its URL )
ftp.HostAddress = "ftp.fsz.bme.hu" ' a hungarian university. change this to your ftp server
ftp.UserName = "anonymous" ' replace with your user name
ftp.Password = "user@mail.com" ' replace with your password
 
'Calculate the hour difference between this PC and the FTP Server
ftp.CalcHourDifference()
System.Console.WriteLine("The difference in hours is {0}", ftp.HourDifference)
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FTP Class
FTP Members