網頁

2020/6/5

Use milliseconds to record date time

In my current working project, our team uses milliseconds to record the moment of DML. The problem is using milliseconds is not intuitive for developers to read. They cannot tell the time through the long number. I have to copy the long number and use online converter to translate milliseconds to readable date time information when debugging, such a pain.

I asked a member about the reason, he told me maybe they wanted to record time directly by Java System.currentTimeMillis().

I would use TIMESTAMP instead.

沒有留言:

張貼留言