Taken by a sort of generalisation frenzy I produced the following; I tried to make it as readable as I could. Recall that the upper and lower Dini derivatives are respectively : $$D^*f(x):=\limsup_{y\to x}\frac{f(y)-f(x)}{y-x}$$ $$D_*f(x):=\liminf_{y\to x}\frac{f(y)-f(x)}{y-x}.$$