I have this dataframe:
df <- data.frame(datetime = c("2018-08-23 11:03:25 0300", "2018-08-17 12:54:09 0300", "2018-08-07 17:15:29 0400", "2018-08-07 10:41:30 0400", "2018-08-07 10:37:37 0400", "2018-08-03 10:36:49 0400", "2018-07-26 12:52:28 0400", "2018-07-10 18:06:02 0400", "2018-07-04 17:52:24 0400", "2018-06-20 15:28:08 0400"),
stringsAsFactors = FALSE)
> df
datetime
1 2018-08-23 11:03:25 0300
2 2018-08-17 12:54:09 0300
3 2018-08-07 17:15:29 0400
4 2018-08-07 10:41:30 0400
5 2018-08-07 10:37:37 0400
6 2018-08-03 10:36:49 0400
7 2018-07-26 12:52:28 0400
8 2018-07-10 18:06:02 0400
9 2018-07-04 17:52:24 0400
10 2018-06-20 15:28:08 0400
I need to transform it in the same timezone and delete its timezone (why? because It will make easier to make some computations of hours/days/weeks between vectors of the same type)
Expected Output:
datetime
1 2018-08-23 12:03:25 # this was UTC +3, now +1 hour is UTC +4
2 2018-08-17 13:54:09 # this was UTC +3, now +1 hour is UTC +4
3 2018-08-07 17:15:29 # this is UTC +4
4 2018-08-07 10:41:30 # this is UTC +4
5 2018-08-07 10:37:37 # this is UTC +4
6 2018-08-03 10:36:49 # this is UTC +4
7 2018-07-26 12:52:28 # this is UTC +4
8 2018-07-10 18:06:02 # this is UTC +4
9 2018-07-04 17:52:24 # this is UTC +4
10 2018-06-20 15:28:08 # this is UTC +4
Any ideas?
EDIT:
This question is by place, and its solved by the argument tz
as you can insert the place there. However, in this question I don't have an argument to recognize the timezone inside the string.