J’ai récupéré du JSON en utilisant l’API Discourse. Il y a plusieurs champs relatifs aux dates et heures, comme ceci :
"created_at": "2019-07-24T12:25:02.016Z",
"last_posted_at": "2019-07-25T06:21:58.328Z",
Que signifient les caractères ‘T’ et ‘Z’ dans ce format ? Existe-t-il un outil pour l’analyser ? J’ai besoin d’effectuer des opérations mathématiques dessus.
C’est un format de date et d’heure standard, et pratiquement tous les langages de programmation devraient prendre en charge son analyse.
2026-04-28T00:57:57+00:00 UTC+00:00
ISO 8601 is an international standard covering the worldwide exchange and communication of date and time-related data. It is maintained by the International Organization for Standardization (ISO) and was first published in 1988, with updates in 1991, 2000, 2004, and 2019, and an amendment in 2022. The standard provides a well-defined, unambiguous method of representing calendar dates and times in worldwide communications, especially to avoid misinterpreting nu...