En effet je ne trouve pas le type qui correspondrait a MM:SS:CC
Si je comprends bien tu cherches le format de données à utiliser pour stocker ta valeur.
Dans la doc en ligne (DataTypes) il est dit que : SQLite does not have a storage class set aside for storing dates and/or times. Instead, the built-in Date And Time Functions of SQLite are capable of storing dates and times as TEXT, REAL, or INTEGER values:
# SQLite Data Types
Posté par Mali (site web personnel) . En réponse au message chrono en seconde python pour DB sqlite. Évalué à 1.
Si je comprends bien tu cherches le format de données à utiliser pour stocker ta valeur.
Dans la doc en ligne (DataTypes) il est dit que :
SQLite does not have a storage class set aside for storing dates and/or times. Instead, the built-in Date And Time Functions of SQLite are capable of storing dates and times as TEXT, REAL, or INTEGER values:
Mais qu'il existe des fonctions pour çà :
Applications can chose to store dates and times in any of these formats and freely convert between formats using the built-in date and time functions.
Du coup, je pense que ce dont tu as besoin c'est de stocker en format TEXT ou INTEGER (au choix) et de récupérer sous la forme HH:MM:SS.SSS
essaye :
sqlite> select strftime('%d-%m-%Y %H:%M:%S.%f', datetime('now'));