Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8" ?>
- <Configuration>
- <ViewDefinitions>
- <View>
- <Name>Custom DateTime View</Name>
- <ViewSelectedBy>
- <TypeName>System.DateTime</TypeName>
- </ViewSelectedBy>
- <ListControl>
- <ListEntries>
- <ListEntry>
- <ListItems>
- <ListItem>
- <Label>LocalTime</Label>
- <ScriptBlock>$_.LocalTime</ScriptBlock>
- <ItemSelectionCondition>
- <ScriptBlock>$_.LocalTime -ne $null</ScriptBlock>
- </ItemSelectionCondition>
- </ListItem>
- <ListItem>
- <Label>Current</Label>
- <ScriptBlock>$_</ScriptBlock>
- <ItemSelectionCondition>
- <ScriptBlock>$_.LocalTime -eq $null</ScriptBlock>
- </ItemSelectionCondition>
- </ListItem>
- </ListItems>
- </ListEntry>
- </ListEntries>
- </ListControl>
- </View>
- </ViewDefinitions>
- </Configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement