Thanks for your response Jim, that function will definitely come in handy. However I still have the problem of not being able to use it to calculate the date/time of each point individually as it is added to the map. If I was to put it in now it would say all points were added at the exact same time.
Below is the code I have exported straight from modelbuilder.
# Import arcpy module
import arcpy
# Set Geoprocessing environments
arcpy.env.scratchWorkspace = "D:\\dnutsford\\Thar_project"
arcpy.env.workspace = "G:\\Temp\\Daniel"
# Script arguments
points = arcpy.GetParameterAsText(0)
if points == '#' or not points:
points = "in_memory\\{CC1D7814-D71D-4E29-8FB1-3CC188292BF4}" # provide a default value if unspecified
output_map = arcpy.GetParameterAsText(1)
if output_map == '#' or not output_map:
output_map = "D:\\dnutsford\\Thar_project\\output_map" # provide a default value if unspecified
# Local variables:
# Process: Make Feature Layer
arcpy.MakeFeatureLayer_management(points, output_map, "", "", "OBJECTID OBJECTID VISIBLE NONE;SHAPE SHAPE VISIBLE NONE;an an VISIBLE NONE;numba numba VISIBLE NONE")
I am adding my points as the first parameter ('points') using a feature set as this allows me to interactively click on the display map. Im thinking that I need some way of iterating through the first parameter so that the script runs automatically each time the user clicks on the map display with the cursor. I can then append all the points to one feature class. Any help with the code required (or if it can be done in modelbuilder even better) would be much appreciated.
Cheers
Dan