Home
last modified time | relevance | path

Searched refs:relunit (Results 1 – 2 of 2) sorted by relevance

/PHP-7.0/ext/date/lib/
H A Dparse_date.re651 const timelib_relunit* relunit;
653 if (!(relunit = timelib_lookup_relunit(ptr))) {
657 switch (relunit->unit) {
658 case TIMELIB_SECOND: s->time->relative.s += amount * relunit->multiplier; break;
659 case TIMELIB_MINUTE: s->time->relative.i += amount * relunit->multiplier; break;
660 case TIMELIB_HOUR: s->time->relative.h += amount * relunit->multiplier; break;
669 s->time->relative.weekday = relunit->multiplier;
676 s->time->relative.special.type = relunit->multiplier;
1562 const timelib_relunit* relunit;
1568 relunit = timelib_lookup_relunit((char**) &ptr);
[all …]
H A Dparse_date.c653 const timelib_relunit* relunit; in timelib_set_relative() local
655 if (!(relunit = timelib_lookup_relunit(ptr))) { in timelib_set_relative()
659 switch (relunit->unit) { in timelib_set_relative()
660 case TIMELIB_SECOND: s->time->relative.s += amount * relunit->multiplier; break; in timelib_set_relative()
661 case TIMELIB_MINUTE: s->time->relative.i += amount * relunit->multiplier; break; in timelib_set_relative()
662 case TIMELIB_HOUR: s->time->relative.h += amount * relunit->multiplier; break; in timelib_set_relative()
671 s->time->relative.weekday = relunit->multiplier; in timelib_set_relative()
678 s->time->relative.special.type = relunit->multiplier; in timelib_set_relative()
3527 const timelib_relunit* relunit; in scan() local
3533 relunit = timelib_lookup_relunit((char**) &ptr); in scan()
[all …]

Completed in 35 milliseconds