I have a column name Date_and_Time having thousands of data in csv shown below:
Input:
Date_and_Time
2021-06-02T13:00:00.000+05:30
2021-06-02T15:00:00.000+05:30
2021-06-02T19:00:00.000+05:30
2021-06-02T21:00:00.000+05:30
2021-06-02T22:00:00.000+05:30
I want to change in 6 columns shown below in csv file. 'New Time' change by adding 5.30 hrs. Because of this, 'New Date' also change. There is a 'Time Gap' column too. Please help in Python. Thanks.
Output:
Date and Time Old Date Old Time New Date New Time Time Gap
2021-06-02T13:00:00.000+05:30 2021-06-02 13:00:00 2021-06-02 18:30:00 NA
2021-06-02T15:00:00.000+05:30 2021-06-02 15:00:00 2021-06-02 20:30:00 2
2021-06-02T19:00:00.000+05:30 2021-06-02 19:00:00 2021-06-03 0:30:00 4
2021-06-02T21:00:00.000+05:30 2021-06-02 21:00:00 2021-06-03 2:30:00 2
2021-06-02T22:00:00.000+05:30 2021-06-02 22:00:00 2021-06-03 3:30:00 1