Symphony Framework
ToTime Method
Symphony.dB.SQLSupport Namespace > Converters Class : ToTime Method
The value to convert to a Int32 time value.
the mask determining the inbound data. This is either HHMMSS or HHMM.
The key value of the data area being processed.
Optionally pass the name of the structure containing the data so enable better logging.
Conmvert a numeric value to a DateTime value.
Syntax

Parameters

timeValue
The value to convert to a Int32 time value.
timeMask
the mask determining the inbound data. This is either HHMMSS or HHMM.
keyValue
The key value of the data area being processed.
structureName
Optionally pass the name of the structure containing the data so enable better logging.

Return Value

The converted Int16 time value.
Remarks
This static method allows for the convertion of HHMMSS or HHMM integer values to integer time values. Any exceptions are recorded to the Symphony Event log. the passed in key value is the key value of the current data area containing the date value being converted. This helps to identify the problem data/record area when a convertion fails.

These methods are designed to be used by the Symphony.dB.SQLDispatcher class and not from user code.

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

Converters Class
Converters Members