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

unix/java epoch time

Participant ,
Dec 11, 2006 Dec 11, 2006

Copy link to clipboard

Copied

Just a quick comment / question...

Why is there zero documentation on the getTime() function? In my searches to to convert cf datetime to unix epoch time (also used for java & php), I just happen to fall upon it by searching the forum. If there is any drawn out documentation, please show me to it.

Just in case someone's wondering:

<cfset now = now()>
<cfset unix_epoch_time = int(now.getTime()/1000)>
TOPICS
Advanced techniques

Views

270

Translate

Translate

Report

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
Advisor ,
Dec 11, 2006 Dec 11, 2006

Copy link to clipboard

Copied

It's not documented because it is not part of the language and could change in the future.

If you are going to use hidden java functions, use the Java documentation: http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html#getTime()

Votes

Translate

Translate

Report

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
Participant ,
Dec 12, 2006 Dec 12, 2006

Copy link to clipboard

Copied

LATEST
Thanks.

Votes

Translate

Translate

Report

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
Documentation