Convert a time/date string to time object?


#1

is there a method anywhere to convert a suitable juce string to a time object?

Rolling my own is not a problem, but if I’m just missing one, it’ll save me a little time.


#2

no, don’t think I’ve ever done one of those. There are so many different ways of writing a date that it’d probably be quite a tricky thing to get right.


#3

I was thinking of a more targetted thing, like an inverse to:

time::toString() as the output of this should be known.

I agree though, it’s pretty tricky, so no problem. :slight_smile:


#4

[quote=“valley”]I was thinking of a more targetted thing, like an inverse to:

time::toString() as the output of this should be known.

I agree though, it’s pretty tricky, so no problem. :)[/quote]

An inverse to that would be useful. I have a function that converts from it back to something else. Not using it any longer, but would have been useful back when…


#5