[Git][wine/wine][master] vbscript: Implement DateDiff built-in function.
Alexandre Julliard pushed to branch master at wine / wine Commits: 04da356a by Francis De Brabandere at 2026-05-07T15:32:25-04:00 vbscript: Implement DateDiff built-in function. Implement DateDiff(interval, date1, date2 [, firstdayofweek [, firstweekofyear]]) with support for all interval types: yyyy, q, m, y, d, w, ww, h, n, s. For yyyy/q/m the difference is computed from calendar fields via VarUdateFromDate. For d/y the day number difference is used. For w it is the day difference integer-divided by 7 (not affected by firstdayofweek). For ww it counts week boundary crossings based on firstdayofweek. For h/n/s the dates are converted to the respective unit and truncated before subtracting. Returns VT_I4 (Long). Null date arguments return Null; null interval or null firstdayofweek/firstweekofyear return VBSE_ILLEGAL_NULL_USE. - - - - - 2 changed files: - dlls/vbscript/global.c - dlls/vbscript/tests/api.vbs View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/04da356a61047a8793a6586045479d4... -- View it on GitLab: https://gitlab.winehq.org/wine/wine/-/commit/04da356a61047a8793a6586045479d4... You're receiving this email because of your account on gitlab.winehq.org. Manage all notifications: https://gitlab.winehq.org/-/profile/notifications | Help: https://gitlab.winehq.org/help
participants (1)
-
Alexandre Julliard (@julliard)