Method
parseTimeSymbol
(
char c,
String period,
int index
)
Source from the content-addressed store, hash-verified
| 3809 | } |
| 3810 | |
| 3811 | private static ClockUnit parseTimeSymbol( |
| 3812 | char c, |
| 3813 | String period, |
| 3814 | int index |
| 3815 | ) throws ParseException { |
| 3816 | |
| 3817 | switch (c) { |
| 3818 | case 'H': |
| 3819 | return HOURS; |
| 3820 | case 'M': |
| 3821 | return MINUTES; |
| 3822 | case 'S': |
| 3823 | return SECONDS; |
| 3824 | default: |
| 3825 | throw new ParseException( |
| 3826 | "Symbol \'" + c + "\' not supported: " + period, index); |
| 3827 | } |
| 3828 | |
| 3829 | } |
| 3830 | |
| 3831 | private static IsoDateUnit parseWeekBasedSymbol( |
| 3832 | char c, |
Tested by
no test coverage detected