1 ARCHIVE_ENTRY_TIME(3) manual page
3 '''archive_entry_atime''',
4 '''archive_entry_atime_nsec''',
5 '''archive_entry_atime_is_set''',
6 '''archive_entry_set_atime''',
7 '''archive_entry_unset_atime''',
8 '''archive_entry_birthtime''',
9 '''archive_entry_birthtime_nsec''',
10 '''archive_entry_birthtime_is_set''',
11 '''archive_entry_set_birthtime''',
12 '''archive_entry_unset_birthtime''',
13 '''archive_entry_ctime''',
14 '''archive_entry_ctime_nsec''',
15 '''archive_entry_ctime_is_set''',
16 '''archive_entry_set_ctime''',
17 '''archive_entry_unset_ctime''',
18 '''archive_entry_mtime''',
19 '''archive_entry_mtime_nsec''',
20 '''archive_entry_mtime_is_set''',
21 '''archive_entry_set_mtime''',
22 '''archive_entry_unset_mtime''',
23 - functions for manipulating times in archive entry descriptions
25 Streaming Archive Library (libarchive, -larchive)
27 '''<nowiki>#include <archive_entry.h></nowiki>'''
31 '''archive_entry_atime'''(''struct archive_entry *a'');
35 '''archive_entry_atime_nsec'''(''struct archive_entry *a'');
39 '''archive_entry_atime_is_set'''(''struct archive_entry *a'');
43 '''archive_entry_set_atime'''(''struct archive_entry *a'', ''time_t sec'', ''long nanosec'');
47 '''archive_entry_unset_atime'''(''struct archive_entry *a'');
51 '''archive_entry_birthtime'''(''struct archive_entry *a'');
55 '''archive_entry_birthtime_nsec'''(''struct archive_entry *a'');
59 '''archive_entry_birthtime_is_set'''(''struct archive_entry *a'');
63 '''archive_entry_set_birthtime'''(''struct archive_entry *a'', ''time_t sec'', ''long nanosec'');
67 '''archive_entry_unset_birthtime'''(''struct archive_entry *a'');
71 '''archive_entry_ctime'''(''struct archive_entry *a'');
75 '''archive_entry_ctime_nsec'''(''struct archive_entry *a'');
79 '''archive_entry_ctime_is_set'''(''struct archive_entry *a'');
83 '''archive_entry_set_ctime'''(''struct archive_entry *a'', ''time_t sec'', ''long nanosec'');
87 '''archive_entry_unset_ctime'''(''struct archive_entry *a'');
91 '''archive_entry_mtime'''(''struct archive_entry *a'');
95 '''archive_entry_mtime_nsec'''(''struct archive_entry *a'');
99 '''archive_entry_mtime_is_set'''(''struct archive_entry *a'');
103 '''archive_entry_set_mtime'''(''struct archive_entry *a'', ''time_t sec'', ''long nanosec'');
107 '''archive_entry_unset_mtime'''(''struct archive_entry *a'');
109 These functions create and manipulate the time fields in an
111 Supported time fields are atime (access time), birthtime (creation time),
112 ctime (last time an inode property was changed) and mtime (modification time).
114 [[ManPageLibarchive3]]
115 provides a high-resolution interface.
116 The timestamps are truncated automatically depending on the archive format
117 (for archiving) or the filesystem capabilities (for restoring).
119 All timestamp fields are optional.
122 functions can be used to mark the corresponding field as missing.
123 The current state can be queried using
125 Unset time fields have a second and nanosecond field of 0.
127 [[ManPageArchiveEntry3]]
128 [[ManPageLibarchive3]],
132 library first appeared in
137 library was written by
138 Tim Kientzle <kientzle@acm.org.>