컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
timestamp.now
timestamp.now()
설명
1970-01-01 00:00:00 UTC 이후의 초 수를 반환합니다. 이를 Unix epoch time이라고도 합니다.
반환 유형
INT
코드 샘플
예 1
다음 예에서는 2024년 5월 22일 18시 16분 59초에 실행된 코드의 타임스탬프를 반환합니다.
timestamp.now() = 1716401819 // Unix epoch time in seconds for May 22, 2024 at 18:16:59
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-29(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-29(UTC)"],[[["\u003cp\u003e\u003ccode\u003etimestamp.now()\u003c/code\u003e returns the current Unix epoch time, which is the number of seconds elapsed since January 1, 1970, at 00:00:00 UTC.\u003c/p\u003e\n"],["\u003cp\u003eThis function is supported in both Rules and Search contexts, as indicated by the provided links.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns an integer (\u003ccode\u003eINT\u003c/code\u003e) representing the timestamp in seconds.\u003c/p\u003e\n"],["\u003cp\u003eAn example usage demonstrates that \u003ccode\u003etimestamp.now()\u003c/code\u003e returns \u003ccode\u003e1716401819\u003c/code\u003e for May 22, 2024, at 18:16:59.\u003c/p\u003e\n"]]],[],null,["### timestamp.now\n\nSupported in: \n[Rules](/chronicle/docs/detection/default-rules) [Search](/chronicle/docs/investigation/udm-search) \n\n timestamp.now()\n\n#### Description\n\nReturns the number of seconds since 1970-01-01 00:00:00 UTC. This is also\nknown as *Unix epoch time*.\n\n#### Return type\n\n`INT`\n\n#### Code samples\n\n##### Example 1\n\nThe following example returns a timestamp for code executed on\nMay 22, 2024 at 18:16:59. \n\n timestamp.now() = 1716401819 // Unix epoch time in seconds for May 22, 2024 at 18:16:59"]]