I have a wxString
that contains hours, minutes, seconds, and milliseconds. I'm trying to create a wxDateTime
from this information. I can either leave it in the format of "%H:%M:%S.%f"
or I can grab the values individually.
My first thought was to use the wxDateTime
constructor that takes in h, m, s, ms, however I can't find how to create a wxDateTime_t
anywhere to pass into this.
wxDateTime& wxDateTime(wxDateTime_t hour, wxDateTime_t minute = 0, wxDateTime_t second = 0, wxDateTime_t millisec = 0)
I've also been looking a lot at wxParseTime
where I would use the default wxDateTime
constructor and then call this, but I don't know how to pass in the time as a const wxChar*
correctly to this function.
const wxChar * ParseTime(const wxChar *time)
Can anyone give any insight on either of these ideas or give a better approach to this?
I've been getting my info through this site wxwidgets.
Thanks in advance for any help!
Additional info: wxDateTime::wxDateTime, wxDateTime::wxParseTime.