날짜/시간 형식
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
호텔 광고 XML 메시지 및 피드에는 다음 날짜/시간 형식을 사용하세요.
날짜
날짜는 다음 형식으로 표현됩니다.
YYYY-MM-DD
YYYY
: 4자리 연도
MM
: 두 자리 월
DD
: 2자리 일
예를 들어 2017년 12월 31일은 2017-12-31
입니다.
YearlessDate
연도가 없는 날짜는 매년 발생하는 날짜 이벤트를 나타내며 다음 형식으로 표현됩니다.
MM-DD
예를 들어 12월 31일은 12-31
입니다.
일시
DateTime은 RFC 3339 형식을 사용합니다.
YYYY-MM-DDTHH:mm[:ss.SSS]+|-HH:mm[Z]
YYYY
: 4자리 연도
MM
: 두 자리 월
DD
: 2자리 일
T
: 날짜와 시간을 구분합니다.
HH
: 시간
mm
: 분
ss
: (선택사항) 초
SSS
: (선택사항) 밀리초
+|-
: 날짜와 시간을 시간대 오프셋과 구분합니다.
HH:mm
: 시간대 오프셋의 시간 및 분
Z
: (선택사항) 0 오프셋
예: 2017-12-31T16:20:00-04:00
시간대 오프셋에 Z
를 지정할 수도 있습니다. 이는 0 오프셋을 나타냅니다.
시간
시간은 다음 형식으로 표시됩니다.
HH:MM[:SS]
HH
: 시간
MM
: 분
SS
: (선택사항) 초
예: 16:20:00
또는 16:20
시간은 연결된 속성의 현지 시간대로 해석됩니다.
All rights reserved. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 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."]]