FileDateTime Function

파일을 만들었거나 마지막으로 수정한 날짜와 시간을 포함하는 문자열을 표시합니다.

구문:


FileDateTime (Text As String)

매개 변수:

Text: 명백한(와일드카드가 없는) 파일 지정을 포함하는 임의의 문자열 식입니다. URL 표기법을 사용할 수도 있습니다.

이 함수는 파일을 작성하거나 마지막으로 수정한 정확한 시간을 "MM.DD.YYYY HH.MM.SS" 서식으로 표시합니다.

You can set the locale used for controlling the formatting numbers, dates and currencies in LibreOfficeDev Basic in - Languages and Locales - General. In Basic format codes, the decimal point (.) is always used as placeholder for the decimal separator defined in your locale and will be replaced by the corresponding character.

날짜, 시간 및 통화 서식에 대한 국가별 설정에도 동일하게 적용됩니다. Basic 서식 코드는 사용자의 국가별 설정에 따라 해석되어 표시됩니다.

Error codes:

5 잘못된 프로시저 호출입니다.

예:


Sub ExampleFileDateTime
    MsgBox FileDateTime("C:\autoexec.bat")
End Sub