- except ValueError: pass
- raise PLCInvalidArgument("Cannot parse timestamp %r - not in any of %r formats"%(input,Timestamp.input_formats))
- elif isinstance (input,(int,float)):
- result=int(input)
- if Timestamp.debug: print('out:',result)
+ except ValueError:
+ pass
+ raise PLCInvalidArgument("Cannot parse timestamp %r - not in any of %r formats"%(input, Timestamp.input_formats))
+ elif isinstance(input, (int, float)):
+ result = int(input)
+ if Timestamp.debug:
+ print('out:',result)