Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Third stage of PSCustomObject
Date = Get-Date
Scriptblock = 'PSCustomObject'
DateDescription = if ((Get-Date).Second -lt 15) {
'1st Quarter'
} elseif ((Get-Date).Second -lt 30) {
'2nd Quarter'
} elseif ((Get-Date).Second -lt 45) {
'3rd Quarter'
} else {
'4th Quarter'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment