MCPcopy Create free account
hub / github.com/MenoData/Time4J / parseTimeSymbol

Method parseTimeSymbol

base/src/main/java/net/time4j/Duration.java:3811–3829  ·  view source on GitHub ↗
(
        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,

Callers 1

parseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected