Copy TimeFormatter from v10