Home | History | Annotate | Download | only in nspr

Lines Matching refs:date

42  *     NSPR date and time functions
171 // Date was possibly too far in the future and would overflow. Return
172 // the most future date possible (year 2038).
175 // Date was possibly too far in the past and would underflow. Return
176 // the most past date possible (year 1901).
485 * This parses a time/date string into a PRTime
488 * if the time/date string can't be parsed.
528 int date = -1;
933 date = n3;
951 date = n1;
960 date = n2;
984 else if ((end - rest) == 2) /* two digits - date or year */
988 /* If we don't have a date (day of the month) and we see a number
989 less than 32, then assume that is the date.
991 Otherwise, if we have a date and not a year, assume this is the
998 if (date < 0 && n < 32)
999 date = n;
1011 else if ((end - rest) == 1) /* one digit - date */
1012 date = (date < 0 ? (rest[0]-'0') : date);
1078 a numerologically significant date... */
1079 if (month == TT_UNKNOWN || date == -1 || year == -1 || year > PR_INT16_MAX)
1089 if (date != -1)
1090 result->tm_mday = date;
1131 * date we are parsing to transform the date to GMT. We also
1149 date you are handing it is in daylight savings mode or not;
1155 * mktime will return (time_t) -1 if the input is a date
1163 * We avoid this crash by not calling mktime if the date is
1190 zone_offset for the date we are parsing is the same as