Formati data/ora
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Utilizza i seguenti formati data/ora nei feed e nei messaggi XML di Hotel Ads.
Data
Le date sono espresse nel seguente formato:
YYYY-MM-DD
YYYY
: indica l'anno a quattro cifre
MM
: indica il mese a due cifre
DD
: indica il giorno a due cifre
Esempio: 2017-12-31
per il 31 dicembre 2017.
YearlessDate
Le date senza anno esprimono un evento data che si verifica ogni anno e sono espresse nel seguente formato:
MM-DD
MM
: indica il mese a due cifre
DD
: indica il giorno a due cifre
Esempio: 12-31
per il 31 dicembre.
DateTime
DateTime utilizza il formato RFC 3339:
YYYY-MM-DDTHH:mm[:ss.SSS]+|-HH:mm[Z]
YYYY
: indica l'anno a quattro cifre
MM
: indica il mese a due cifre
DD
: indica il giorno a due cifre
T
: separa la data dall'ora
HH
: ore
mm
: minuti
- (Facoltativo)
ss
: indica i secondi
- (Facoltativo)
SSS
: indica i millisecondi
+|-
: separa la data e l'ora dalla differenza di fuso orario
HH:mm
: ore e minuti nella differenza di fuso orario
- (Facoltativo)
Z
: indica una differenza zero
Esempio: 2017-12-31T16:20:00-04:00
.
Puoi anche specificare Z
per la differenza di fuso orario, che indica una differenza pari a zero.
Ora
L'ora è espressa nel seguente formato:
HH:MM[:SS]
HH
: ore
MM
: minuti
- (Facoltativo)
SS
: indica i secondi
Esempio: 16:20:00
o 16:20
.
Gli orari vengono interpretati nel fuso orario locale della proprietà associata.
Tutti i diritti riservati. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003eHotel Ads XML messages and feeds use specific formats for Date, YearlessDate, DateTime, and Time.\u003c/p\u003e\n"],["\u003cp\u003eDates are expressed as YYYY-MM-DD (e.g., 2017-12-31), while YearlessDates omit the year, using MM-DD (e.g., 12-31).\u003c/p\u003e\n"],["\u003cp\u003eDateTime follows the RFC 3339 format, YYYY-MM-DDTHH:mm[:ss.SSS]+|-HH:mm[Z], including timezone offsets.\u003c/p\u003e\n"],["\u003cp\u003eTime is represented as HH:MM[:SS] (e.g., 16:20:00 or 16:20) and is interpreted in the property's local time zone.\u003c/p\u003e\n"]]],[],null,["# Date/Time Formats\n\nUse the following date/time formats in the Hotel Ads XML messages and feeds.\n\nDate\n----\n\nDates are expressed in the following format: \n\n YYYY-MM-DD\n\n- `YYYY`: Four-digit year\n- `MM`: Two-digit month\n- `DD`: Two-digit day\n\nExample: `2017-12-31` for December 31st, 2017.\n\nYearlessDate\n------------\n\nYearless dates express a date event that occurs every year, and are expressed in\nthe following format: \n\n MM-DD\n\n- `MM`: Two-digit month\n- `DD`: Two-digit day\n\nExample: `12-31` for December 31st.\n\nDateTime\n--------\n\nDateTime uses the [RFC 3339](//www.ietf.org/rfc/rfc3339.txt) format: \n\n YYYY-MM-DDTHH:mm[:ss.SSS]+\\|-HH:mm[Z]\n\n- `YYYY`: Four-digit year\n- `MM`: Two-digit month\n- `DD`: Two-digit day\n- *T*: Separates the date from the time\n- `HH`: Hours\n- `mm`: Minutes\n- `ss`: (Optional) Seconds\n- `SSS`: (Optional) Milliseconds\n- *+|-*: Separates the date and time from the timezone offset\n- `HH:mm`: Hours and minutes in the timezone offset\n- *Z*: (Optional) Zero offset\n\nExample: `2017-12-31T16:20:00-04:00`.\n\nYou can also specify `Z` for the timezone offset, which indicates zero offset.\n\nTime\n----\n\nTime is expressed in the format: \n\n HH:MM[:SS]\n\n- `HH`: Hours\n- `MM`: Minutes\n- `SS`: (Optional) Seconds\n\nExample: `16:20:00` or `16:20`.\n\nTimes are interpreted in the local time zone of the associated property."]]