Home
last modified time | relevance | path

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

/PHP-7.2/ext/date/lib/
H A Dparse_date.re642 const timelib_relunit* relunit;
644 if (!(relunit = timelib_lookup_relunit(ptr))) {
648 switch (relunit->unit) {
650 case TIMELIB_SECOND: s->time->relative.s += amount * relunit->multiplier; break;
651 case TIMELIB_MINUTE: s->time->relative.i += amount * relunit->multiplier; break;
652 case TIMELIB_HOUR: s->time->relative.h += amount * relunit->multiplier; break;
661 s->time->relative.weekday = relunit->multiplier;
668 s->time->relative.special.type = relunit->multiplier;
1621 const timelib_relunit* relunit;
1627 relunit = timelib_lookup_relunit((char**) &ptr);
[all …]
H A Dparse_date.c644 const timelib_relunit* relunit; in timelib_set_relative() local
646 if (!(relunit = timelib_lookup_relunit(ptr))) { in timelib_set_relative()
650 switch (relunit->unit) { in timelib_set_relative()
652 case TIMELIB_SECOND: s->time->relative.s += amount * relunit->multiplier; break; in timelib_set_relative()
653 case TIMELIB_MINUTE: s->time->relative.i += amount * relunit->multiplier; break; in timelib_set_relative()
654 case TIMELIB_HOUR: s->time->relative.h += amount * relunit->multiplier; break; in timelib_set_relative()
663 s->time->relative.weekday = relunit->multiplier; in timelib_set_relative()
670 s->time->relative.special.type = relunit->multiplier; in timelib_set_relative()
3944 const timelib_relunit* relunit; in scan() local
3950 relunit = timelib_lookup_relunit((char**) &ptr); in scan()
[all …]

Completed in 38 milliseconds