Skip to content

Commit 6c30fc8

Browse files
docs: OpenXML.get_Modified ( Fixes #24 )
1 parent 27b1581 commit 6c30fc8

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Types/OpenXML/Alias.psd1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@{
2+
Part = 'Parts'
3+
4+
CreatedAt = 'Created'
5+
ModifiedAt = 'Modified'
6+
7+
# FileInfo compatibility
8+
CreationTime = 'Created'
9+
LastWriteTime = 'Modified'
10+
}

Types/OpenXML/get_Modified.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<#
2+
.SYNOPSIS
3+
Gets OpenXML modified time
4+
.DESCRIPTION
5+
Gets the time an OpenXML file was modified, according to core document metadata.
6+
.EXAMPLE
7+
Get-OpenXML ./Examples/Blank.docx | Select-Object -ExpandProperty Modified
8+
#>
9+
$this.Parts.'/docProps/core.xml'.content.coreProperties.modified.innerText -as [DateTime]

0 commit comments

Comments
 (0)