Minor optimization
In delta = delta + parseTimeOffset(intervalUnit), the parseTimeOffset can have a negative impact on performance, it is hence saved in a global variable