def Resultat(x,y): diff = x-y return '%d:%02d' % divmod(diff, 60) Variation = Resultat( !ScePUPbr! , !SitPUPbr!)
Solved! Go to Solution.
!Variation![0:1] + !testvari!
'-%d:%02d' % divmod(4, 60)
def Resultat(x,y): diff = x-y if diff < 0: sign = '-' else: sign = '' return sign+'%d:%02d' % divmod(abs(diff), 60)