I have a timetable with data that has UTC +1 as timebase. Matlab provides the function timezones, which nicely shows the region, UTC offset and DST (daylight saving time) options. The data set does not have DST. I noticed that there is a region called "etc.", which doesn't include DST. For example, etc/GMT+1. To my surprise, the UTC offset is -1 and not +1 as I'd expect for, well, GMT +1. Why is it defined in the opposite way? When I look up GMT+1 and UTC+1, they should be the same, shouldn't they? So basically I have two questions: 1 Why does the timezone etc/GMT+1 have a negative UTC offset in Matlab? 2 What is the correct way to assign UTC+1 as timezone to a dataset in a timetable? Is this via etc/GMT-1?
MATLAB: How to assign UTC time
MATLABtimezones utc etc/gmt
Related Question
- Can I get a datetime output in a different Time Zone from the input Time Zone in one function call
- Function for day of the year
- How to convert data in UTC to a specific local time
- Function that transforms years into days
- Convert excel date to datetime
- Timezone to UTC: How to add duration vector to datetime vector
Best Answer