2020-04-24, 11:54 PM
The xml output of NScriptHelper is not working for me for batch files, so I thought I'd write my own helper (in Python) for the few commands I need. I've got it working, initiate a session, login (thanks to Martins example). However I'm confused as to what format the startTime field is in so I can convert it to a printable date.
The call: http://localhost:8866/service?method=rec...er=pending...
output snippet:
{'id': 1648,
'name': 'The Blacklist',
'desc': 'Liz and the task force take on a cold case that may be linked to some new victims; Red tries to help a friend of Dembe who is in danger.',
'subtitle': 'Nyle Hatcher',
'startTime': 1587772800,
'duration': 3600,
What is 1587772800? How do I convert that to a date/time? In the NScriptHelper xml, that translates to 4/24/2020 8:00:00 PM...
The call: http://localhost:8866/service?method=rec...er=pending...
output snippet:
{'id': 1648,
'name': 'The Blacklist',
'desc': 'Liz and the task force take on a cold case that may be linked to some new victims; Red tries to help a friend of Dembe who is in danger.',
'subtitle': 'Nyle Hatcher',
'startTime': 1587772800,
'duration': 3600,
What is 1587772800? How do I convert that to a date/time? In the NScriptHelper xml, that translates to 4/24/2020 8:00:00 PM...