Click or drag to resize

SKMTimeCheck Method

This method checks whether the network time is different from the local time (client computer). This helps to prevent date changes caused by a client.

Namespace:  SKGL
Assembly:  SKM (in SKM.dll) Version: 4.0.2.6 (4.0.2.6)
Syntax
public static bool TimeCheck()

Return Value

Type: Boolean
Returns FALSE if time was NOT changed and TRUE if the time was changed.
Examples
The following code demonstrances the way TimeCheck can be used.
C#
public void HasLocalTimeChanged()
{
   bool hasChanged = SKGL.SKM.TimeCheck();

   if(hasChanged)
   {
       Debug.WriteLine("The local time was changed by the user. Validation fails.");
   }
   else
   {
       Debug.WriteLine("The local time hasn't been changed. Continue validation.");
   }
}
See Also