La date et le format TIMESTAMP
Outils de conversion de date vers timestamp
Outils de conversion de timestamp vers date
plus d'infos sur date/timestamp
DateTime en PHP et MySQL
Utilisation : enregistrement d'une date et une heure.
Format MySQL : ' AAAA-MM-JJ HH:MM:SS '.
Validité : de ' 1000-01-01 00:00:00 ' à ' 9999-12-31 23:59:59 '.
Date en PHP et MySQL
Utilisation : enregistrement d'une date.
Format MySQL : ' AAAA-MM-JJ '.
Validité : de '1000-01-01' à '9999-12-31' .
Timestamp en PHP et MySQL
Utilisation : enregistrement automatique de l'heure courante lors d'une commande INSERT ou UPDATE.
Format MySQL :
Longueur du champ | Format d'affichage |
TIMESTAMP(14) | YYYYMMDDHHMMSS |
TIMESTAMP(12) | YYMMDDHHMMSS |
TIMESTAMP(10) | YYMMDDHHMM |
TIMESTAMP(8) | YYYYMMDD |
TIMESTAMP(6) | YYMMDD |
TIMESTAMP(4) | YYMM |
TIMESTAMP(2) | YY |
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 06/12/2003, last modified the 13/10/2024
Source of the printed document:https://www.gaudry.be/en/conversions-date-timestamp.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.