I am trying to write a timestamp function compatible with a MySQL database TIMESTAMP type. This is what I have so far.
I think it will work except for one problem. I need a fixed precision of
2 digits for months days hours minutes and seconds.
any ideas? I don't think fill() and width() will work for this purpose.
also, if you have any better ideas about how to implement this, I'm all ears.