ESRI.ArcGIS.DataManagementTools
ConvertTimeField Constructor(Object,Object,String,String)
See Also  Send your comments to: Site Administrator | Terms of Use | PRIVACY | Copyright @ ESRI | Careers
ESRI.ArcGIS.DataManagementTools Namespace > ConvertTimeField Class > ConvertTimeField Constructor : ConvertTimeField Constructor(Object,Object,String,String)




in_table
The layer or table that contains the field containing the time values that need to be converted and stored in the Date field. (In, Required)
input_time_field
The field containing the time values. May be of type short, long, float, double, or text. (In, Required)
input_time_format
The format in which the time values were stored in the input time field. Either a standard time format can be selected from the drop-down list, or a custom format can be entered. If the data type of the time field is numeric (Short, Long, Float, or Double), a list of standard numeric time formats is provided in the drop-down list. If the data type of the time field is string, a list of standard string time formats is provided in the drop-down list. For string fields, you can also choose to specify a custom time format. For example, the time values may have been stored in a string field in one of the standard formats such as yyyy/MM/dd HH:mm:ss or in a custom format such as dd/MM/yyyy HH:mm:ss. For the custom format, you can also specify the AM, PM designator. (In, Required)
output_time_field
The name of output field. The output field created will be of type Date. (In, Required)
Constructor that takes all required parameters for geoprocessor execution.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal in_table As Object, _
   ByVal input_time_field As Object, _
   ByVal input_time_format As String, _
   ByVal output_time_field As String _
)
Visual Basic (Usage)Copy Code
Dim in_table As Object
Dim input_time_field As Object
Dim input_time_format As String
Dim output_time_field As String
 
Dim instance As ConvertTimeField(in_table, input_time_field, input_time_format, output_time_field)
C# 
public ConvertTimeField( 
   object in_table,
   object input_time_field,
   string input_time_format,
   string output_time_field
)

Parameters

in_table
The layer or table that contains the field containing the time values that need to be converted and stored in the Date field. (In, Required)
input_time_field
The field containing the time values. May be of type short, long, float, double, or text. (In, Required)
input_time_format
The format in which the time values were stored in the input time field. Either a standard time format can be selected from the drop-down list, or a custom format can be entered. If the data type of the time field is numeric (Short, Long, Float, or Double), a list of standard numeric time formats is provided in the drop-down list. If the data type of the time field is string, a list of standard string time formats is provided in the drop-down list. For string fields, you can also choose to specify a custom time format. For example, the time values may have been stored in a string field in one of the standard formats such as yyyy/MM/dd HH:mm:ss or in a custom format such as dd/MM/yyyy HH:mm:ss. For the custom format, you can also specify the AM, PM designator. (In, Required)
output_time_field
The name of output field. The output field created will be of type Date. (In, Required)

See Also

© 2010 All Rights Reserved.