I have a vector of time (Uk time) with dates included and wish to change these times to local times. To do this I have already worked out what country the time needs to be set to and the time change in that country. So for example we know the time in the UK is 2023-04-24 07:49:00
and this needs to be changed to local time in Spain which is UTC +2 at this time of year. This can get a bit complex as the UK is also UTC +1 so I think the different will have to be worked out first, but this should give a new time of 2023-04-24 07:49:00
or 07:49:00
. My main issues comes when doing this as I'm unsure how to do the change, the vectors im working with are below and both are in character format.
timestochange
"2023-04-24 07:49:00"
"2023-04-24 07:53:00"
"2023-04-24 07:56:00"
"2023-04-24 08:01:00"
"2023-04-24 09:12:00"
tzchange #this is compared with UTC not current UK time
"+2:00"