SQLite does not have a specific data type for storing time and leaves it to you whether you want to save it as text, integers, or floating point values, so you can set which convention is best for you.
For your application, where you want the user to edit the time, I would suggest looking at DatePicker and TimePicker , so you donβt have to worry about parsing and formatting the time as text, and then Java Calendar to convert the data from it into a simple value, which you can put in a database (I would suggest using getTimeInMillis () to convert it to an integer).
Jon colverson
source share