Questions on wm.server.schedule:getUserTaskList

  1. When I try to invoke “wm.server.schedule:getUserTaskList” to get the scheduler information, the result in “next run” is a large number which doesn’t correspond to the next run time (in seconds) of the scheduler in admin page. I think this is epoch time but the question is how do I convert it back to normal time in seconds?

  2. Does anyone know what the field “msDelta” is? What does it have to do with a scheduler?

A large number means that the task is currently running. So a “Next Run” has not yet been computed.

If you talking about converting long to date time they write a small java service…

SimpleDateFormat sdf = new SimpleDateFormat();
sdf.applyPattern(pattern);
sdf.format(new Date(Long.parseLong(longDate)))

Cheers,
Ajit