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 LibreOffice 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

Please support us!