Decode the Bluetooth SIG Current Time characteristic (UUID 0x2A2B).
CTS reports local calendar fields rather than an absolute timezone-aware instant. The returned epoch encodes those fields in a UTC-shaped number so the watch RTC can preserve the wall-clock time shown by the phone. This function validates the complete 10-byte field set and has no BLE dependency, allowing malformed values and leap dates to be checked on a host.
- Parameters
-
| value | Pointer to the characteristic bytes. |
| size | Must equal the specification's 10-byte structure size. |
| epoch | Receives encoded seconds only on success; unchanged on failure. |
- Returns
- False for null, wrong length, invalid calendar fields, or overflow.