Convert char* time to const tm*
I'm new to all the time functions for c++ so I dont know if there is a function for this or not. Anyway, I have an 11 character long char*/const char*/string/int (whatever will work because I know how to convert between those 4 variable types). Anyway, this variable contains the number of seconds since January something of 1970. I was wondering how I convert this to a const tm* so I can use the strftime function. I dont need to convert to local timezone time or none of that. I just have an 11-digit number basically (which is the time a message was sent, so this number changes for different messages) and I want to be able to output this 11-digit number into something people can understand (I'll already have the format).
Thanks for any help!!!