summaryrefslogtreecommitdiff
path: root/test/get-global-timeservers
blob: adcf175a27e0c52c59a55ff4a0b9470d6995301b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/python

import dbus

bus = dbus.SystemBus()

clock = dbus.Interface(bus.get_object('net.connman', '/'),
					'net.connman.Clock')

properties = clock.GetProperties()

print "Timeserver is %s" % (properties["Timeservers"])