DateTimeRenderOption
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
출력에서 날짜를 렌더링하는 방법을 결정합니다.
열거형 |
SERIAL_NUMBER |
날짜, 시간, 날짜/시간, 기간 필드를 Lotus 1-2-3에서 대중화한 '일련번호' 형식의 double로 출력하도록 지시합니다. 값의 정수 부분 (소수점 왼쪽)은 1899년 12월 30일 이후 경과된 일수를 계산합니다. 소수 부분 (소수점 오른쪽)은 시간을 하루의 비율로 계산합니다. 예를 들어 1900년 1월 1일 정오의 경우 2.5가 됩니다. 1899년 12월 30일로부터 2일이 지났으므로 2이고, 정오가 하루의 절반이므로 .5입니다. 1900년 2월 1일 오후 3시의 경우 33.625입니다. 이렇게 하면 1900년이 윤년이 아닌 것으로 올바르게 처리됩니다. |
FORMATTED_STRING |
날짜, 시간, 날짜 시간, 시간 길이 필드를 지정된 숫자 형식 (스프레드시트 언어에 따라 다름)의 문자열로 출력하도록 지시합니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-03-21(UTC)
[null,null,["최종 업데이트: 2025-03-21(UTC)"],[],[],null,["# DateTimeRenderOption\n\nDetermines how dates should be rendered in the output.\n\n| Enums ||\n|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `SERIAL_NUMBER` | Instructs date, time, datetime, and duration fields to be output as doubles in \"serial number\" format, as popularized by Lotus 1-2-3. The whole number portion of the value (left of the decimal) counts the days since December 30th 1899. The fractional portion (right of the decimal) counts the time as a fraction of the day. For example, January 1st 1900 at noon would be 2.5, 2 because it's 2 days after December 30th 1899, and .5 because noon is half a day. February 1st 1900 at 3pm would be 33.625. This correctly treats the year 1900 as not a leap year. |\n| `FORMATTED_STRING` | Instructs date, time, datetime, and duration fields to be output as strings in their given number format (which depends on the spreadsheet locale). |"]]