Note about resolution code, sample duration and original time resolution
The difference between the concepts of duration and resolution can be confusing. Resolution is about frequency of measurements (the average time between two sample start times), duration is about the average duration of the samples. This is not always the same, for example if a measurement is performed for one day each week (sample duration = 1d, resolution code = 1w).
The original time resolution is important for averaged data, then it would be the original resolution of the instrument. If the data are not averaged, the original time resolution is of course equal to the resolution code.