i am trying to label a feature with the current time using the python parcer. i have done this in the past with VB but since this will be a service i need to use python. my VB code was : "Live Coverage Status"&vbnewline&Now() which returned this:
Attachment 24636
i have gotten this far with Python i just need to know what module of time was imported in the label expression:
def FindLabel ( ):
return "Live Coverage Status" +'\n'+ "time module goes here i.e. now()"
solved it with:
def FindLabel ( ):
import time
return "Live Coverage Status\n"+ time.strftime("%m/%d/%Y %H:%M")
Attachment 24636
i have gotten this far with Python i just need to know what module of time was imported in the label expression:
def FindLabel ( ):
return "Live Coverage Status" +'\n'+ "time module goes here i.e. now()"
solved it with:
def FindLabel ( ):
import time
return "Live Coverage Status\n"+ time.strftime("%m/%d/%Y %H:%M")