From: david86 on
What's the proper way to interpret the .DisconnectTime property value from a
Win32_SessionDirectorySession query?

- David
From: Maxim Oustiougov [MSFT] on
David - this property is of WMI type DateTime that represents date and time
of session disconnection. You can read on MSDN about how to interpret this
format:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/date_and_time_format.asp

--
Maxim Oustiougov,
Terminal Services Program Manager

This posting is provided "AS IS" with no warranties, and confers no rights.

"david86" <david86(a)discussions.microsoft.com> wrote in message
news:31A368D5-083D-4070-B85E-44C6AA88B286(a)microsoft.com...
> What's the proper way to interpret the .DisconnectTime property value from
> a
> Win32_SessionDirectorySession query?
>
> - David


From: david86 on
Thanks for your response. I've seen that documentation, but it doesn't cover
the issue I am having. Here's an example:

I'm making a WMI query to Win32_SessionDirectorySession and among the things
I get back are these values.

<CreateTime>2006-09-22T12:15:13.0000000-05:00</CreateTime>
<DisconnectTime>16010101000000.000000-000</DisconnectTime>

The CreateTime is not a problem. The DisconnectTime is where I'm getting
hung up. From the documentation, the DisconnectTime (interval) should follow
this format : ddddddddHHMMSS.mmmmmm:000

But getting 16010101000000.000000-000 as a result doesn't make any sense.
Plus, I always get that value. Suggestions?

- David




"Maxim Oustiougov [MSFT]" wrote:

> David - this property is of WMI type DateTime that represents date and time
> of session disconnection. You can read on MSDN about how to interpret this
> format:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/date_and_time_format.asp
>
> --
> Maxim Oustiougov,
> Terminal Services Program Manager
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "david86" <david86(a)discussions.microsoft.com> wrote in message
> news:31A368D5-083D-4070-B85E-44C6AA88B286(a)microsoft.com...
> > What's the proper way to interpret the .DisconnectTime property value from
> > a
> > Win32_SessionDirectorySession query?
> >
> > - David
>
>
>