No cache version.

Caching disabled. Default setting for this page:enabled (code DEF204)
If the display is too slow, you can disable the user mode to view the cached version.

La date et le format TIMESTAMP

Outils de conversion de date vers timestamp

Date -> Timestamp

Jour et mois en chiffre, année à quatre chiffres.
Vous n'êtes pas obligé de spécifier tous les champs (en particulier l'heure, les minutes, et surtout les secondes).

Outils de conversion de timestamp vers date

Timestamp -> Date

Pour les deux formats de date utilisateur, ce sont les formats que vous avez spécifié dans votre profil.
Le résultat dépend donc de votre sélection de fuseau horaire, et de la prise en charge ou non du changement d'heure été/hiver.

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 15/11/2019
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.