mirror of
https://github.com/dlang/phobos.git
synced 2025-05-14 00:46:22 +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;
|
private ushort _diskNumber;
|
||||||
// should be private when deprecation done
|
// should be private when deprecation done
|
||||||
deprecated("Please use fileAttributes instead.") uint externalAttributes;
|
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 flags; /// Read/Write: normally set to 0
|
||||||
ushort internalAttributes; /// Read/Write
|
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
|
* Read compression method used for this member
|
||||||
* See_Also:
|
* See_Also:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue