add formatTime to strings.class