Convert a time/date string to time object?

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.

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.

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:

[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…