-3

For example the program gets time and date from the system Date : 17/05/2018 Time: 20:15:55

Output Date: seventeenth of may two thousand and eighteen Time: twenty past fifteen

Can i use strftime?

Mochni
  • 13
  • 8

1 Answers1

0

There is not library in c or c++ that does that, but this can be done easily manually. You can create a char array with 31 days, 24 hours, etc. Only problem could be with years, but i suppose that you won't need thousands of years for your application.

You can see basic example with hours and minutes here.

mereth
  • 465
  • 3
  • 9
  • 19