How get time and date from timestamp

thanks for your reply. Finally I implemented the code below and works but still with problems. The output that gives me Mbed when I compiled and run code in LPC1768 is “10/2/21,1:42:57” but when I run the same code in a C++ online compiler is “10/02/21,01:42:57”. In numbers less than 10, strftime is not adding left zero value and I need the second format. Is there a simple way to do that? because in documentation the function with these format options should work. Thanks for your help

#define UTC    -3
...
char dateTimeString[20];
time_t timestampDataInt = 0;
timestampDataInt = (time_t)atoll("1612932177")-abs(UTC*3600);
time_t infoTime = timestampDataInt;
strftime(dateTimeString, 20, "%d/%m/%y,%T",localtime(&infoTime));