Re: filetime human readable?

From: Ray at <%=sLocation%> [MVP] (%=sLocation%)
Date: 03/03/04


Date: Wed, 3 Mar 2004 11:11:08 -0500

I see! Thanks Richard.

Ray at work

"Richard Mueller [MVP]" <rlmueller-NOSPAM@ameritech.NOSPAM.net> wrote in
message news:ejik0QNAEHA.1464@tk2msftngp13.phx.gbl...
> Hi,
>
> I would say that's a 64-bit number. VBScript cannot deal with 64-bit
numbers
> directly. Some attributes in Active Directory have syntax Integer8, which
> means 8 bytes or 64-bits. When you deal with these in ADSI you use the
> IADsLargeInteger interface, which has HighPart and LowPart property
methods
> to break the number up into 32-bit chunks that VBScript can handle. All
> Integer8 dates that I know of represent the number of 100-nanosecond
> intervals since 12:00 AM January 1, 1601. The dates are always in UTC
> (Coordinated Universal Time, or what used to be called GMT), so you have
to
> adjust for the local time zone. If I calculate correctly, your number
> corresponds to 147207.8956164 days since the zero date, which is 9:29 AM
> January 16, 2004 UTC (correct for your time zone).
>
> How are you seeing this number? Is the IADsLargeInterface available?
>
> I discuss Integer8 attributes on this page, which also links a function to
> convert them to readable dates:
>
> http://www.rlmueller.net/Integer8Attributes.htm
>
> --
> Richard
> Microsoft MVP Scripting and ADSI
> HilltopLab web site - http://www.rlmueller.net
> --
>
> "Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
> message news:e0kjf3MAEHA.3828@TK2MSFTNGP10.phx.gbl...
> > I don't know about other humans, but I do not recognize
127187621812581241
> > as a time. What time is that? If we can see the before and after
instead
> > of just the before, maybe we can come up with something.
> >
> > Ray at home
> >
> > "Jon Chan" <j0nchan@yahoo.com> wrote in message
> > news:v6ga40t5kc4un474efq1tccj2c63l0lodi@4ax.com...
> > > is there an easy way to convert a filetime number to something human
> > > readable?
> > >
> > > example - i'd like vbscript to translate 127187621812581241 for me.
> > >
> > > thanks
> >
> >
>
>



Relevant Pages

  • Re: filetime human readable?
    ... Some attributes in Active Directory have syntax Integer8, ... >IADsLargeInteger interface, which has HighPart and LowPart property methods ... can get this script to work, i'd being running the script locally on a ...
    (microsoft.public.scripting.vbscript)
  • Re: Emailing AD audit alerts...
    ... Dèjì Akómöláfé, MCSE MCSA MCP+I ... "Ray" wrote in message ... > group is created/deleted in the Active Directory domain. ... > changes in groups/users in active directory and email notifications ...
    (microsoft.public.win2000.active_directory)
  • Re: for loop in my script not working
    ... Ray I am querying an active directory database ... Set objConnection = CreateObject ...
    (microsoft.public.scripting.vbscript)
  • Re: ASP / Value Question
    ... address from your Active Directory. ... Is that what you're saying? ... Look at this sample code: ... >> Ray at home ...
    (microsoft.public.inetserver.asp.general)
  • Re: Cannot Add/Remove Active Directory Servers
    ... Ray ... > I think something wrong with our active directory, ... > command in DOS prompt that can list/modify domain controller and active ... I appreciate your kind help. ...
    (microsoft.public.windows.server.active_directory)

Loading