DateTime
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
JSON 표현 |
{
"date": string
} |
필드 |
date |
string
ISO 8601 확장 형식 날짜/시간입니다. 오프셋이 필요할 수도 있고 필요하지 않을 수도 있습니다 (상위 필드의 문서 참조). 시간은 최대 나노초 단위로 지정할 수 있습니다. 오프셋은 초 정밀도로 지정할 수 있습니다 (오프셋 초는 ISO 8601의 일부가 아님). 예를 들면 다음과 같습니다. 1985-04-12T23:20:50.52Z 은 1985년 4월 12일 23시 20분 50.52초(UTC)입니다.
1985-04-12T19:20:50.52-04:00 는 UTC보다 4시간 늦은 1985년 4월 12일 19시 20분 50.52초입니다 (위의 예시와 같은 시점). 날짜/시간이 뉴욕의 실제 위치에 해당하는 경우 이는 동부 일광 절약 시간 (EDT)에 해당합니다. 일광 절약 시간 (서머 타임)을 시행하는 지역에서는 연중 시기에 따라 오프셋이 다릅니다.
1985-04-12T19:20:50.52 는 오프셋 정보가 없는 1985년 4월 12일 19시 20분 50.52초입니다.
오프셋을 제공하면 전 세계에서 절대적인 시점을 만들 수 있습니다. 날짜/시간은 사용자의 시간대를 기준으로 조정됩니다. 예를 들어 2018-06-19T18:30:00-04:00 시간은 뉴욕의 사용자에게는 18:30:00, 로스앤젤레스의 사용자에게는 15:30:00이 됩니다. 오프셋을 생략하면 로컬 날짜/시간이 되어 전 세계의 여러 시점을 나타냅니다. 날짜/시간은 항상 사용자의 현재 시간대입니다. 예를 들어 2018-06-19T18:30:00 시간은 뉴욕의 사용자에게 18:30:00이 되고 로스앤젤레스의 사용자에게는 18:30:00이 됩니다. 여러 시간대의 여러 물리적 위치에 동일한 현지 날짜/시간을 적용해야 하는 경우 유용합니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eThe JSON schema represents a date object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edate\u003c/code\u003e field is a string that adheres to the ISO 8601 extended format for date and time.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edate\u003c/code\u003e field can include an offset to specify the time zone, or it can be omitted for local time representation.\u003c/p\u003e\n"],["\u003cp\u003eProviding an offset ensures the \u003ccode\u003edate\u003c/code\u003e represents a specific instant in time globally, while omitting it makes it a local time subject to user time zones.\u003c/p\u003e\n"]]],["The core information defines the `date` field within a JSON structure. The `date` is a string representing an ISO 8601 date/time, with optional offset information. It may include nanosecond precision. Providing an offset creates an absolute instant in time, adjusted to the user's timezone. Omitting the offset creates a local date/time, consistent across time zones. This format can represent times down to the nanosecond and offsets with second precision.\n"],null,["# DateTime\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\n| JSON representation |\n|----------------------------|\n| ``` { \"date\": string } ``` |\n\n| Fields ||\n|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `date` | `string` An ISO 8601 extended format date/time. Offset may or may not be required (refer to the parent field's documentation). Time may be specified up to nanosecond precision. Offsets may be specified with seconds precision (even though offset seconds is not part of ISO 8601). For example: `1985-04-12T23:20:50.52Z` would be 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. `1985-04-12T19:20:50.52-04:00` would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4 hours before UTC (same instant in time as the above example). If the date/time is intended for a physical location in New York, this would be the equivalent of Eastern Daylight Time (EDT). Remember that offset varies in regions that observe Daylight Saving Time (or Summer Time), depending on the time of the year. `1985-04-12T19:20:50.52` would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985 with no offset information. Providing an offset makes this an absolute instant in time around the world. The date/time will be adjusted based on the user's time zone. For example, a time of `2018-06-19T18:30:00-04:00` will be 18:30:00 for a user in New York and 15:30:00 for a user in Los Angeles. Omitting the offset makes this a local date/time, representing several instants in time around the world. The date/time will always be in the user's current time zone. For example, a time of `2018-06-19T18:30:00` will be 18:30:00 for a user in New York and also 18:30:00 for a user in Los Angeles. This is useful when the same local date/time should apply to many physical locations across several time zones. |"]]