mirror of
https://github.com/dlang/phobos.git
synced 2025-05-12 15:17:12 +03:00
Merge pull request #1752 from dawgfoto/std_zip2
add a set time overload which takes a SysTime
This commit is contained in:
commit
281a5b74ef
1 changed files with 19 additions and 1 deletions
20
std/zip.d
20
std/zip.d
|
@ -86,8 +86,8 @@ class ArchiveMember
|
|||
private ushort _diskNumber;
|
||||
// should be private when deprecation done
|
||||
deprecated("Please use fileAttributes instead.") uint externalAttributes;
|
||||
private DosFileTime _time;
|
||||
|
||||
std.datetime.DosFileTime time; /// Read/Write: Last modified time of the member. DOS date/time format.
|
||||
ushort flags; /// Read/Write: normally set to 0
|
||||
ushort internalAttributes; /// Read/Write
|
||||
|
||||
|
@ -169,6 +169,24 @@ class ArchiveMember
|
|||
}
|
||||
}
|
||||
|
||||
/// Set the last modification time for this member.
|
||||
@property void time(SysTime time)
|
||||
{
|
||||
_time = SysTimeToDosFileTime(time);
|
||||
}
|
||||
|
||||
/// ditto
|
||||
@property void time(DosFileTime time)
|
||||
{
|
||||
_time = time;
|
||||
}
|
||||
|
||||
/// Get the last modification time for this member.
|
||||
@property DosFileTime time() const
|
||||
{
|
||||
return _time;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read compression method used for this member
|
||||
* See_Also:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue