Hello,
There is no analog function in the current examples, still, you can try using the RTC module of the device and configure it to get the timestamp.
You can check the chapter 47 of the Reference Manual of the device for further details on this
Regards,
Estephania