Function nitrokey_sys::NK_totp_set_time_soft
source · [−]Expand description
Set the device time used for TOTP to the given time. Contrary to {@code set_time(uint64_t)}, this command fails if {@code old_time} > {@code time} or if {@code old_time} is zero (where {@code old_time} is the current time on the device).
@param time new device time as Unix timestamp (seconds since 1970-01-01) @return command processing error code