Skip to content
Prev 61826 / 63424 Next

R 4.3: Change in behaviour of as.character.POSIXt for datetime values with midnight time

Martin,

Thank you. Everything you have written is helpful and I admit I am likely guilty of using as.character() instead of format() in the past().

Ignoring the above though, one thing I?m still unclear on is the special handling of zero (or rather non-zero time) seconds in the method. Is the motivation that as.character() outputs the minimum necessary information? It is clearly a very deliberate choice but the reasoning is still going a little over my head.

Best

Tim