https://bugs.documentfoundation.org/show_bug.cgi?id=114229

--- Comment #14 from Andreas Heinisch <andreas.heini...@yahoo.de> ---
The current implementation is here:

https://opengrok.libreoffice.org/xref/core/basic/source/runtime/methods.cxx?r=7201db41#1981

sal_Int16 nHour = rPar.Get(1)->GetInteger();
if ( nHour == 24 )
{
    nHour = 0;                      // because of UNO DateTimes, which go till
24 o'clock
}
sal_Int16 nMinute = rPar.Get(2)->GetInteger();
sal_Int16 nSecond = rPar.Get(3)->GetInteger();
if ((nHour < 0 || nHour > 23)   ||
    (nMinute < 0 || nMinute > 59 )  ||
    (nSecond < 0 || nSecond > 59 ))
{
    StarBASIC::Error( ERRCODE_BASIC_BAD_ARGUMENT );
    return;
}

So we have just to agree on the behaviour of the function :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to