cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

moments.js in Thingworx

bot1q
11-Garnet

moments.js in Thingworx

Hi,

 

i need to do some time based calculations which are not well supported with "js" and thingworx. 

How can I establish moments.js into thingworx?

4 REPLIES 4
wposner-2
12-Amethyst
(To:bot1q)

The best way would be to write a java resource extension that includes specific services for the various functionality you need.  You can expose all of the functionality provided by moments.js directly with Java.

bot1q
11-Garnet
(To:wposner-2)

Ah cool. Thank you.

Other question. I dont think i am the only one who needed some time calculations with thingworx.

Maybe someone wrote allready an extension?

Hello,

 

Just curious -- what use case do you struggle implementing with out-of-the-box ThingWorx?

 

/ Constantine

All Usecases where Datasources (sensors etc.) are placed all around the world and the users need to get the historian data in different time zones ... Only library that i know can handle my use case in javascript is moments.js ... Basic Javascript is simply ... bad 

 

 

Top Tags