FileDateTime Function

Liveras ĉenon kiu enhavas la daton kaj la horon, kiam dosiero kreiĝis aŭ ŝanĝiĝis.

Sintakso:

FileDateTime (Text As String)

Parametroj:

Text: Ĉena esprimo kiu enhavas nedubsencan (sen ĵokeroj) dosieran specifon. Ankaŭ uzeblas URL-notacio.

Tiu funkcio liveras la ekzaktan horon de kreo aŭ lasta ŝanĝo de dosiero, laŭ la formato "MM.TT.YYYY HH.MM.SS".

You can set the locale used for controlling the formatting numbers, dates and currencies in LibreOffice Basic in - Language Settings - Languages. 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.

The same applies to the locale settings for date, time and currency formats. The Basic format code will be interpreted and displayed according to your locale setting.

Error codes:

5 Nevalida procedurvoko

Ekzemplo:

Sub ExampleFileDateTime

    MsgBox FileDateTime("C:\autoexec.bat")

End Sub