I got the following code sample from user johnwasser in another thread on the same subject. I'd like to use this code in a project, but I need to take it a step further and make use of the millisecond(s) remainder that resulted from the initial division of millis by 1000, instead of rounding it up to the next second as was done below. I'm brand new to Arduino programming and have not been able to find a reference solution. Thanks in advance for any help!

```
unsigned long currentMillis = millis();
unsigned long seconds = currentMillis / 1000;
unsigned long minutes = seconds / 60;
unsigned long hours = minutes / 60;
unsigned long days = hours / 24;
currentMillis %= 1000;
seconds %= 60;
minutes %= 60;
hours %= 24;
```