Re: filetime human readable?
From: Ray at <%=sLocation%> [MVP] (%=sLocation%)
Date: 03/03/04
- Next message: Eimis: "Installing software through start up script"
- Previous message: Paula: "Event Handling"
- In reply to: Richard Mueller [MVP]: "Re: filetime human readable?"
- Next in thread: Jon Chan: "Re: filetime human readable?"
- Messages sorted by: [ date ] [ thread ]
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
> >
> >
>
>
- Next message: Eimis: "Installing software through start up script"
- Previous message: Paula: "Event Handling"
- In reply to: Richard Mueller [MVP]: "Re: filetime human readable?"
- Next in thread: Jon Chan: "Re: filetime human readable?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|