aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2011-12-02 19:54:12 +0100
committerBjörn-Egil Dahlberg <[email protected]>2011-12-08 14:12:01 +0100
commitcf50fadc0133a41e8c4a52c3db05a1d0d6186e7d (patch)
tree7458a8c0e3c9fcf0d5d2639c8146d19291f78e8a /lib/kernel
parentbd271023fe529f1b591408226743968085a78556 (diff)
downloadotp-cf50fadc0133a41e8c4a52c3db05a1d0d6186e7d.tar.gz
otp-cf50fadc0133a41e8c4a52c3db05a1d0d6186e7d.tar.bz2
otp-cf50fadc0133a41e8c4a52c3db05a1d0d6186e7d.zip
Teach #file_info spec unix epochs for file times
Diffstat (limited to 'lib/kernel')
-rw-r--r--lib/kernel/include/file.hrl9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/kernel/include/file.hrl b/lib/kernel/include/file.hrl
index 3889bce393..ef42987a3d 100644
--- a/lib/kernel/include/file.hrl
+++ b/lib/kernel/include/file.hrl
@@ -25,10 +25,11 @@
{size :: non_neg_integer(), % Size of file in bytes.
type :: 'device' | 'directory' | 'other' | 'regular' | 'symlink',
access :: 'read' | 'write' | 'read_write' | 'none',
- atime :: file:date_time(), % The local time the file was last read:
- % {{Year, Mon, Day}, {Hour, Min, Sec}}.
- mtime :: file:date_time(), % The local time the file was last written.
- ctime :: file:date_time(), % The interpretation of this time field
+ atime :: file:date_time() | integer(), % The local time the file was last read:
+ % {{Year, Mon, Day}, {Hour, Min, Sec}}.
+ % atime, ctime, mtime may also be unix epochs()
+ mtime :: file:date_time() | integer(), % The local time the file was last written.
+ ctime :: file:date_time() | integer(), % The interpretation of this time field
% is dependent on operating system.
% On Unix it is the last time the file
% or the inode was changed. On Windows,