GATT Current Time Service (CTS) Client
You can use the CTS Client library to retrieve the current time from a connected peer that is running the GATT server with the Current Time Service.
The CTS Client is used in the Bluetooth: Peripheral CTS client sample.
API documentation
Header file:
include/bluetooth/services/cts_client.h
Source file:
subsys/bluetooth/services/cts_client.c