It's all about the answers!

Ask a question

what does the return value (long) of class com.ibm.team.build.client.ITeamBuildClient getBuildStartTime method represent


Marc St-Amour (313) | asked Apr 24 '17, 11:25 a.m.

what does the return value (long) of class com.ibm.team.build.client.ITeamBuildClient getBuildStartTime method represent


the return value I get is 1492799546626 ... does not seem to be UTC time ... what is value format?


Comments
Marc St-Amour commented Apr 24 '17, 11:30 a.m.

sorry wrong class ... Interface com.ibm.team.build.common.model.IBuildResult getBuildStartTime method

Accepted answer


permanent link
Kevin Ramer (4.5k9186201) | answered Apr 25 '17, 3:07 p.m.

That is "epoch time".  It is the value of unix time(3) function + milliseconds.   I'm pretty sure it can be "converted" using Java Calendar / date formatter.  ( Calendar.setTimeInMillis() )


Marc St-Amour selected this answer as the correct answer

One other answer



permanent link
Marc St-Amour (313) | answered Apr 26 '17, 8:00 a.m.

 Thank you Kevin!


Turns out I just did a divide by 1000 on the return value for Git to accept it as a valid value for the rev-list command --since parameter ... 

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.