Well, I have already described math algorithm above.
I made that material and it works just fine.
I put today’s date (at least in my timezone) in a first row and just sequence of texels in a second.
This is how material looks like. Notice Unlit shading model here.
This is how Custom node looks like in case if you don’t know.
And code for Custom node: [Texelator code][4]