If you need time as a formatted string, and you always like to get 10 hours today, then do not worry, calculating this time manually and writing it to the format template:
DateTimeFormatter format = DateTimeFormatter.ofPattern("yyyy-MM-dd'T10:00:00.000'XXX");
The meaning of each letter can be found here: JavaDocDateTimeFormatter . 'T10:00:00.000'is a fixed string and will not be parsed, just "added" to the returned string.
:
ZonedDateTime.now().format(format);
:
2015-07-21T10: 00: 00.000-04: 00