alibaba / alibaba/Alibaba-Java-Coding-Guidelines
Guide about date
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 1.1k
- Forks
- 246
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
According to
```
9. [Mandatory] A table must include three columns as following: id, gmt_create and gmt_modified.
Note: id is the primary key, which is unsigned bigint and self-incrementing with step length of 1. The type of gmt_create and gmt_modified should be DATETIME.
```
Can I understand that in Alibaba it is recommended to define the date type as DATETIME? If not, shall we add guide about this? TIMESTAMP or DATETIME is the right choice?
We see that it is mandatory to define gmt_create, gmt_modified, can we understand that when dealing with cross time zone issues you recommend storing the date of gmt time in the database and then converting it to local time zone for display?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Aucun fichier ni test n’est identifié dans l’issue. Déterminez d’abord si le guide doit recommander DATETIME ou TIMESTAMP et comment les valeurs UTC doivent être gérées entre les fuseaux horaires ; le travail sera considéré comme terminé lorsque la directive contiendra une recommandation sans ambiguïté et des indications sur les fuseaux horaires.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- sql
- Domaine
- databases, documentation
- Type d'issue
- Documentation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100