This is a read-only copy of the MariaDB Knowledgebase generated on 2024-12-22. For the latest, interactive version please visit https://mariadb.com/kb/.

SEC_TO_TIME

Sintassi

SEC_TO_TIME(secondi)

Spiegazione

Restituisce l'argomento secondi convertito in ore, minuti e secondi, come valore di tipo TIME. L'intervallo di valori del risultato deve rientrare nei limiti di TIME. Se il valore è troppo alto o troppo basso, si riceve un warning.

Esempi

MariaDB [(none)]> SELECT SEC_TO_TIME(2378);
+-------------------+
| SEC_TO_TIME(2378) |
+-------------------+
| 00:39:38          |
+-------------------+
1 row in set (0.00 sec)

MariaDB [(none)]> SELECT SEC_TO_TIME(2378) + 0;
+-----------------------+
| SEC_TO_TIME(2378) + 0 |
+-----------------------+
|           3938.000000 |
+-----------------------+
1 row in set (0.00 sec)

MariaDB [(none)]> 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.