[users at bb.net] How can I find the server's current time via the api?

Caleb Crome caleb at signalessence.com
Sat Jan 27 14:08:58 UTC 2018


Yep, that makes sense.  If there’s ever a v3, it would be handy to have. :-)

Thanks for the reply .

-caleb 


Sent from my iPhone

> On Jan 27, 2018, at 12:47 AM, Pierre Tardy <tardyp at gmail.com> wrote:
> 
> Hi Caleb,
> this API does not exist. The data api is giving timestamps in UTC timezone to avoid all the timezone headackes.
> But in order to synchronize master and another computer, I would recommend to just synchronize them using NTP.
> https://en.wikipedia.org/wiki/Network_Time_Protocol
> It is usually rather easy to setup that.
> 
> Regards
> Pierre
> 
> 
>> On Sat, Jan 27, 2018 at 12:03 AM Caleb Crome <caleb at signalessence.com> wrote:
>> Hi there,
>>   I'm writing a little app that watches builders and builds.  I want
>> to know how long it's been since the build started.  However, I can't
>> find anywhere in the v2 api that tells what time the server thinks it
>> is.  Of course, I can use my local computer's time to compare against,
>> but if my local computer and the master's clock are set wrong, then
>> the delta will be totally wrong.
>> 
>> I'd prefer to get the 'started_at' and 'current_time' both from the
>> master, rather than get 'started_at' from the master, and
>> 'current_time' from my local computer.
>> 
>> does that exist in the API?  I couldn't find it.
>> 
>> Thanks,
>>  -Caleb
>> _______________________________________________
>> users mailing list
>> users at buildbot.net
>> https://lists.buildbot.net/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/users/attachments/20180127/30df51c0/attachment.html>


More information about the users mailing list