Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
276 views
in Technique[技术] by (71.8m points)

python 3.x - time data does not match format error in robot framework

I am getting following error for datetime in robotframework:

ValueError: time data '1609-38-90 78:55:36.030000' does not match format '%Y-%m-%d %H:%M:%S.%f'

Below is my code:

${lte_epoch_time}    Get Current Date    result_format=%Y-%m-%d %H:%M:%S.%f
question from:https://stackoverflow.com/questions/65516717/time-data-does-not-match-format-error-in-robot-framework

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You have the answer in your question itself. '1609-38-90 78:55:36.030000' is not a valid date format. Month can not be 38 and day 90 and hours 78. You need to clean your data set before any preprocessing


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...