# $file.time

Returns the datetime of a file in unixtime format

Usage

    $file.time(<file path:string>[,<time type:string>])

Description

Returns the datetime of a file as the number of milliseconds that have passed since 1970-01-01T00:00:00.000, Coordinated Universal Time (UTC).
The path should be given in UNIX-style and is adjusted according to the system that KVIrc is running on.
The type have to be:
"a" to retrieve the last time the file was accessed;
"c" to retrieve the creation time of the file (on most UNIX systems, when the creation time or the last status change time - e.g. changing file permissions - are not available, it will fallback to "m";
"m" to retrieve the time of the last modification of the file. This is the default.

Syntax Specification

    <integer> $file.time(<file path:string>[,<time type:string>])

Examples

        # Windows
        echo $file.time(c:/file.txt);
        # Linux, other unixes
        echo $file.time(/etc/passwd,a);

Index, Functions

KVIrc 4.2.0.6190 Documentation
Generated by root at Mon Sep 23 13:56:02 2013