0
gettickcount() function and reverse
Contributor
,
/t5/coldfusion-discussions/gettickcount-function-and-reverse/td-p/641573
Feb 12, 2007
Feb 12, 2007
Copy link to clipboard
Copied
Is it possible to find back a date/time from a number coming
from
the gettickcount() function ?
the gettickcount() function ?
TOPICS
Advanced techniques
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/coldfusion-discussions/gettickcount-function-and-reverse/m-p/641574#M60294
Feb 12, 2007
Feb 12, 2007
Copy link to clipboard
Copied
As long as you have a starting point to work with, such as
tickcount x = date y. Then it's a matter of math.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/coldfusion-discussions/gettickcount-function-and-reverse/m-p/641575#M60295
Feb 12, 2007
Feb 12, 2007
Copy link to clipboard
Copied
> Is it possible to find back a date/time from a number
coming from
> the gettickcount() function ?
Have you read the docs?
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000500.htm
There seems to be a bit of conflicting info there:
1) Returns: A string representation of the system time, in milliseconds.
2) The value of the counter has no meaning.
My guess would be that (2) is incorrect. I should think that the value is
n milliseconds after a specific date. And it'd be easy enough to worth out
*which* date using dateAdd().
Why do you want to do this?
--
Adam
> the gettickcount() function ?
Have you read the docs?
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000500.htm
There seems to be a bit of conflicting info there:
1) Returns: A string representation of the system time, in milliseconds.
2) The value of the counter has no meaning.
My guess would be that (2) is incorrect. I should think that the value is
n milliseconds after a specific date. And it'd be easy enough to worth out
*which* date using dateAdd().
Why do you want to do this?
--
Adam
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

