Searched refs:relunit (Results 1 – 2 of 2) sorted by relevance
/PHP-8.3/ext/date/lib/ |
H A D | parse_date.re | 733 const timelib_relunit* relunit; 735 if (!(relunit = timelib_lookup_relunit(ptr))) { 739 switch (relunit->unit) { 741 …case TIMELIB_SECOND: add_with_overflow(s, &s->time->relative.s, amount, relunit->multiplier); br… 742 …case TIMELIB_MINUTE: add_with_overflow(s, &s->time->relative.i, amount, relunit->multiplier); br… 743 …case TIMELIB_HOUR: add_with_overflow(s, &s->time->relative.h, amount, relunit->multiplier); br… 754 s->time->relative.weekday = relunit->multiplier; 763 s->time->relative.special.type = relunit->multiplier; 1817 const timelib_relunit* relunit; 1823 relunit = timelib_lookup_relunit(&ptr); [all …]
|
H A D | parse_date.c | 735 const timelib_relunit* relunit; in timelib_set_relative() local 737 if (!(relunit = timelib_lookup_relunit(ptr))) { in timelib_set_relative() 741 switch (relunit->unit) { in timelib_set_relative() 743 …case TIMELIB_SECOND: add_with_overflow(s, &s->time->relative.s, amount, relunit->multiplier); br… in timelib_set_relative() 744 …case TIMELIB_MINUTE: add_with_overflow(s, &s->time->relative.i, amount, relunit->multiplier); br… in timelib_set_relative() 745 …case TIMELIB_HOUR: add_with_overflow(s, &s->time->relative.h, amount, relunit->multiplier); br… in timelib_set_relative() 756 s->time->relative.weekday = relunit->multiplier; in timelib_set_relative() 765 s->time->relative.special.type = relunit->multiplier; in timelib_set_relative() 8484 const timelib_relunit* relunit; in scan() local 8490 relunit = timelib_lookup_relunit(&ptr); in scan() [all …]
|
Completed in 41 milliseconds