Skip to main content
Nov 1, 2019 10:02 AM UTC
Question

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

Nov 1, 2019 2:49 PM UTC

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.

bot1qAuthor
Nov 1, 2019 2:52 PM UTC

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?

Nov 2, 2019 3:59 PM UTC

Hello,

 

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

 

/ Constantine