Last active
April 24, 2018 06:43
-
-
Save shaneis/6d22b9d1d574d28eba4cc4f2302ecfc6 to your computer and use it in GitHub Desktop.
Third stage of PSCustomObject
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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