Select to view content in your preferred language

datetime

688
1
12-22-2010 04:30 PM
TedCronin
MVP Alum
Any issues encountered with datetime with the addition of SP1 for ArcGIS 10?  It was working correctly at 10 and from the command line it is still working correctly, but from Wing I am not seeing the expected results.

At the command line:

>>>print datetime.datetime.now()

2010-12-22 18:22:24.496000

Python Shell in Wing:

>>> print datetime.datetime.now()

2010-12-22 18:24:20.574000

Wing IDE Pro:
import datetime
print datetime.datetime.now()

433000


Python Window in ArcMap:

>>> import datetime
>>>
print datetime.datetime.now()
2010-12-22 18:29:02.105000


Any ideas?
Tags (2)
0 Kudos
1 Reply
TedCronin
MVP Alum
Weird.

So, it seems like 3.2.12 fixed the issue. Another issue encountered with 3.2.9 after the SP1 install was that setting the path to a workspace, ie ENV.workspace = r"Database Connections\TestServer.sde"

then running

 
fcs = arcpy.ListFeatureClasses()
try:
     for fc in fcs:
     print fc
 
except:
     print arcpy.GetMessages(2)

was not printing the full path of the fc.

It was printing aspect_c16, when it should have been printing datebase.Owner.aspect_c16. This was fixed at 3.2.12 as well.

So, it appears that SP1 DID NOT fix the bug with Rasters where they are showing up when print feature classes is called, since aspect_c16 is a Raster.
0 Kudos