Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

gettickcount() function and reverse

Contributor ,
Feb 12, 2007 Feb 12, 2007
Is it possible to find back a date/time from a number coming from
the gettickcount() function ?
TOPICS
Advanced techniques
453
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 12, 2007 Feb 12, 2007
As long as you have a starting point to work with, such as tickcount x = date y. Then it's a matter of math.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 12, 2007 Feb 12, 2007
LATEST
> 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources