Format a DateTime using :strftime with the offset calculated in the hours

:slight_smile: I was just wondering if there was a way to get the offset calculated in the formatted hours, like 7:00 instead of 10:00 if the offset were say -0300.

From what I can tell is that when using :strftime you always get the hours and offset separately. For example, you’d get 10:00 -0300 (and you can get those separately of course), but you can’t get 7:00 with the offset having been applied to the hours for you.

Is that correct?