String length help

Hello, I'm trying to get the length of the string t.hour from the ds3231 library but I'm having a hard time understanding why it's not possible..

Help will be appreciated, thank you!

Hello, I'm trying to get the length of the string t.hour from the ds3231 library but I'm having a hard time understanding why it's not possible..

Because t.hour is NOT a string. It's not even a String. It's a byte.

Is it possible to make it a string then?

Can I make the byte to a string then by using something like this?

byte timeHByte= t.hour;
String timeH = timeHByte;

TobiasBrage:
Can I make the byte to a string then by using something like this?

byte timeHByte= t.hour;
String timeH = timeHByte;

what if, for example you looked at the magnitude of the number...

for example,

if(t.hour < 10)
ug8.print("0");

Well played sir, think I'll do that..