Concatenate Date And Time Fields (Tracking Analyst)

Niveau de licence :BasicStandardAdvanced

Récapitulatif

Concatenates two separate date and time fields in a feature class or layer into a single field containing both the date and time.

Tracking Analyst is designed to work with temporal data containing date and time information in a single field. If your data contains the date and time in two separate fields, this tool can be used to combine the information together into a new field that Tracking Analyst will understand.

Utilisation

Syntaxe

ConcatenateDateAndTimeFields_TA (Feature_Class, DateField, TimeField, OutputField)
ParamètreExplicationType de données
Feature_Class

The input feature class or layer.

Feature Layer
DateField

The text field in the input feature layer that contains date values.

Field
TimeField

The text field in the input feature layer that contains time values.

Field
OutputField

The name of the new concatenated date/time field to be created and added to the input feature layer.

String

Exemple de code

ConcatenateDateAndTimeFields example (Python window)

This sample shows how to run the tool to concatenate the "MY_DATE" and "MY_TIME" fields, creating a new field named "NEW_DATE_TIME".

import arcpy
arcpy.CheckOutExtension("tracking")
inputGDB = "C:/arcgis/ArcTutor/Tracking Analyst/My_Geodatabase.gdb/my_feature_class"
arcpy.ConcatenateDateAndTimeFields_ta(inputGDB, "MY_DATE", "MY_TIME", "NEW_DATE_TIME")

Environnements

Thèmes connexes

Informations de licence

ArcGIS for Desktop Basic: Requis Tracking Analyst
ArcGIS for Desktop Standard: Requis Tracking Analyst
ArcGIS for Desktop Advanced: Requis Tracking Analyst
4/26/2014