1

I am trying to import data from a DB to another. The source DB has TIMESTAMP (mysql) the destination has DATETIME (mysql). I am trying something like that:

start_at = DateTime.at(row['QA_CONF_START_STAMP']) #start_at

But it is not working

1 Answer 1

1

I'm not sure if conversion is expressly required in this case, as the two values should be equivalent.

Since you're not retrieving the original data using a model, it's coming through as a raw string. The easiest way to interpret that is:

DateTime.parse(row['QA_CONF_START_STAMP'])
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.