in reply to Re: Time to seconds
in thread Time to seconds

Except that this doesn't work when there are no seconds.
I.E. $timestr = '3M';

However, the first one does.

Thank you both, sometimes the simplest things elude us. :(