Try using PrecisionEvaluate() function for large integer math.

Sent from my iPhone

On Aug 21, 2013, at 10:24 AM, Chip Mathers <[email protected]> wrote:

> To answer your question, a Microsoft LDAP or Active Directory time stamp is 
> in nanoseconds and based on time since 1/1/1601. An example would be:
> 
> 128910259851092856
> 
> Which I believe is:
> 
> {ts '2009-07-02 11:33:00'} 
> 
> I convert this time using some code like so:
> 
> <cfscript>
> tempStamp = "128910259851092856";
> tempDiv = 60 * 10000000;
> tempTime = tempStamp / tempDiv;
> ts = DateAdd('n',tempTime,'1/1/1601');
> ts = DateConvert("utc2Local", ts);
> </cfscript>
> 
> I basically tried reversing this logic to go the other direction, but CF 
> doesn't seem to like huge integers like that. 
> 
> 
> On Wed, Aug 21, 2013 at 7:08 AM, Ajas Mohammed <[email protected]> wrote:
>> It would definitely help the group if you show/email the input format and 
>> expected/desired result format, i.e. in this case you say, Microsoft LDAP 
>> time stamp.
>> 
>> On Wed, Aug 21, 2013 at 1:47 AM, Chip Mathers <[email protected]> wrote:
>>> Microsoft LDAP time stamp
>> 
>> 
>> 
>> <Ajas Mohammed /> 
>> iUseDropbox(http://db.tt/63Lvone9) 
>> http://ajashadi.blogspot.com
>> We cannot become what we need to be, remaining what we are.
>> No matter what, find a way. Because thats what winners do.
>> You can't improve what you don't measure.
>> Quality is never an accident; it is always the result of high intention, 
>> sincere effort, intelligent direction and skillful execution; it represents 
>> the wise choice of many alternatives.
> 

Reply via email to