getEmployeeTZOffsetByFilekey() Method

Table of Contents

  1. Function
  2. Syntax
  3. Parameters
  4. Return Value
  5. Sample Code
  6. Remarks
  7. Possible Errors
  8. Preferred Method
  9. Related Methods

Function

  • Returns an employee’s Time Zone Offset

Syntax

  • Integer = AeXMLBridge.getEmployeeTZOffsetByFilekey(filekey);

Parameters

  • Integer - employee filekey

Return Value

  • Returns an integer value containing the time zone offset from the Corporate base

Sample Code

C#

1
2
3
4
5
6
7
8
9
10
11
int filekey = 1234;                                                     
// using employee with filekey "1234"

try
{
int offset = ws.getEmployeeTZOffsetByFilekey(filekey);
}
catch (Exception ex)
{
MessageBox.Show(ex.Messge);
}

VB.Net

1
2
3
4
5
6
7
8
Dim filekey As Integer = 1234
' using employee with filekey "1234"

Try
Dim offset As Integer = ws.getEmployeeTZOffsetByFilekey(filekey)
Catch ex As Exception
MessageBox.Show(ex.Messge)
End Try

Remarks

  • None

Possible Errors

  • Unable to locate employee with filekey

Preferred Method

getEmployeeTZOffsetByIDNum

getEmployeeTZObservesDSTByIDNum

Back to Top