Wrote a conversion function from strings to rTime object