I am using Python 2.7 in calculate value in ModelBuilder. I want to query both 30 seconds before and after the variable. The original value keeps returning not the time change. What am I not defining?
Expression ("%Da%")
Code Block:
def getsecond():
from datetime import datetime
getsecond == ("%Da%")+ timedelta(seconds=30)
return getsecond
type string
The variable Da is a date field