wxTimeSpan::Format

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Rob'
Knows some wx things
Knows some wx things
Posts: 39
Joined: Mon Dec 08, 2008 10:10 pm

wxTimeSpan::Format

Postby Rob' » Mon Mar 20, 2017 6:07 pm

Hi,

wxTimeSpan::Format("%S") creates a string with at least 2 digits. Is there a way to get the string without leading zeros?

Thanks in advance.
Rob'

catalin
Moderator
Moderator
Posts: 1382
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Re: wxTimeSpan::Format

Postby catalin » Mon Mar 20, 2017 7:06 pm

No, AFAIK.
But you can use wxTimeSpan::GetSeconds() and write that to a string.


Return to “C++ Development”

Who is online

Users browsing this forum: No registered users and 13 guests