33 unsigned int hours, minutes, seconds, milliseconds;
35 days = timestamp_ms / 86400000UL;
36 timestamp_ms %= 86400000UL;
38 hours = timestamp_ms / 3600000UL;
39 timestamp_ms %= 3600000UL;
41 minutes = timestamp_ms / 60000UL;
42 timestamp_ms %= 60000UL;
44 seconds = timestamp_ms / 1000UL;
45 timestamp_ms %= 1000UL;
47 milliseconds = timestamp_ms;
49 std::array<char,12 + 1 + 2 + 1 + 2 + 1 + 2 + 1 + 3 + 1> text;
51 snprintf_P(text.data(), text.size(), PSTR(
"%0*lu+%02u:%02u:%02u.%03u"), std::min(days_width, 12U), days, hours, minutes, seconds, milliseconds);