I’m wondering if is there any cool way-tip to group some objects by property of time range.
Guess that we have eventlog objects and we want to group them by time range of one hour
Something like the following:
For example starting from 00:00 “hour”:
Name Value
Absolutely, but first you have to generate a property with that value to group by (or use a constructed property in the call to Group-Object). Assuming that the objects you want to group have a property named “DateTime”, which is a DateTime object, that might look something like this: