Searched refs:relunit (Results 1 – 2 of 2) sorted by relevance
/PHP-8.3/ext/date/lib/ |
H A D | parse_date.re | 737 const timelib_relunit* relunit; 739 if (!(relunit = timelib_lookup_relunit(ptr))) { 743 switch (relunit->unit) { 745 …case TIMELIB_SECOND: add_with_overflow(s, &s->time->relative.s, amount, relunit->multiplier); br… 746 …case TIMELIB_MINUTE: add_with_overflow(s, &s->time->relative.i, amount, relunit->multiplier); br… 747 …case TIMELIB_HOUR: add_with_overflow(s, &s->time->relative.h, amount, relunit->multiplier); br… 758 s->time->relative.weekday = relunit->multiplier; 767 s->time->relative.special.type = relunit->multiplier; 1821 const timelib_relunit* relunit; 1827 relunit = timelib_lookup_relunit(&ptr); [all …]
|
H A D | parse_date.c | 739 const timelib_relunit* relunit; in timelib_set_relative() local 741 if (!(relunit = timelib_lookup_relunit(ptr))) { in timelib_set_relative() 745 switch (relunit->unit) { in timelib_set_relative() 747 …case TIMELIB_SECOND: add_with_overflow(s, &s->time->relative.s, amount, relunit->multiplier); br… in timelib_set_relative() 748 …case TIMELIB_MINUTE: add_with_overflow(s, &s->time->relative.i, amount, relunit->multiplier); br… in timelib_set_relative() 749 …case TIMELIB_HOUR: add_with_overflow(s, &s->time->relative.h, amount, relunit->multiplier); br… in timelib_set_relative() 760 s->time->relative.weekday = relunit->multiplier; in timelib_set_relative() 769 s->time->relative.special.type = relunit->multiplier; in timelib_set_relative() 8488 const timelib_relunit* relunit; in scan() local 8494 relunit = timelib_lookup_relunit(&ptr); in scan() [all …]
|
Completed in 32 milliseconds