Answer the question
In order to leave comments, you need to log in
In what format is it better to store the value in the database?
What is the best way to store time duration in DB?
Well, for example, there is a process and this process has a runtime equal to 10 minutes, in what form is it better to give these 10 minutes to the database? The duration may be a few seconds, or it may be several years.
postgresql database.
Answer the question
In order to leave comments, you need to log in
There is an interval data type - use it. As the documentation suggests , its accuracy is up to one microsecond, and the range of values ... in general, is enough for you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question