+/* If *TIME_SIGN is SIGN_NO_TIME, allows a sign to precede the
+ time and sets *TIME_SIGN. Otherwise, does not allow a sign. */
+static void
+parse_time_sign (struct data_in *i, enum time_sign *time_sign)
+{
+ if (*time_sign == SIGN_NO_TIME)
+ {
+ if (ss_match_byte (&i->input, '-'))
+ *time_sign = SIGN_NEGATIVE;
+ else
+ {
+ ss_match_byte (&i->input, '+');
+ *time_sign = SIGN_POSITIVE;
+ }
+ }
+}
+