ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

Concatenate Date And Time Fields

  • Résumé
  • Utilisation
  • Syntaxe
  • Exemple de code
  • Environnements
  • Informations de licence

Résumé

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

  • The input date and time fields must have a field data type of text.

  • The new field added to the feature layer by this tool will also have a field data type of text.

  • If you are working with a shapefile that contains a date field with only date information (i.e., 03/09/2006), you must transfer the date values into a text field before using this tool to concatenate it with a time field.

Syntaxe

arcpy.ta.ConcatenateDateAndTimeFields(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

  • Espace de travail courant

Informations de licence

  • Basic: Requiert Tracking Analyst
  • Standard: Requiert Tracking Analyst
  • Advanced: Requiert Tracking Analyst

Rubriques connexes

  • An overview of the Tracking Analyst toolbox

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog d’Esri
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2021 Esri. | Confidentialité | Légal