Time.valueOf(text)

Parses a String for a time object. The string can have one of the following formats (using lex-like syntax): 1. Date-time specification: -?y{1,6}/M{1,2}/d{1,2}( h{1,2}:m{1,2}(:s{1,2}(.ms)?)?)? In this case, if years are positive (AD), more than three digits must be specified (use leading zeroes to pad if necessary). 2. Time-only specification h{1,2}:m{1,2}(:s{1,2}(.ms{1,})?)?)? 3. Interval specification -?{num}d{num}h{num}m{num}s(.ms)? With d, h, m and s specification in any order In cases 2. and 3., no timezone correction is applied to the resulting Time object. The resulting Time objects can therefore be used to be added to a date-time Time.

Arguments:

Name Type Description Mode
text String The string from which the time object should be parsed. in