By default,Data tables sscript code isn't visible.I need to create a new script for a simple "GetDataTableByTimestamp" where this data table script will take input as time difference between StartDate and EndDate and provide output as Infotable.
Please help on this.
I'm not quite sure where you are building your code, but within Thingworx, you can very easily create services that invoke these built-in services. If you are doing this external, I recommend you still build the service within Thingworx and do a REST API invoke.
As for explanations etc. in regards to these services see the new documentation: http://support.ptc.com/cs/help/thingworx_hc/thingworx_6.0_hc/