Files
loongoffice/basic/qa/basic_coverage/test_Time.bas
Mike Kaganski cd99539291 tdf#136112: return 'Date' type from Time()
Change-Id: Id21a4c378ddf9888740b3201f109e1897b722ded
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185046
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
(cherry picked from commit 5a9c784cba996b599e36965d241509696d19ff3c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185051
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-05-08 17:25:52 +02:00

21 lines
549 B
QBasic

'
' This file is part of the LibreOffice project.
'
' This Source Code Form is subject to the terms of the Mozilla Public
' License, v. 2.0. If a copy of the MPL was not distributed with this
' file, You can obtain one at http://mozilla.org/MPL/2.0/.
'
Option Explicit
Function doUnitTest as String
''' Return 'text' OR 'date' variable '''
If (TypeName(Time$)<>"String" Or Vartype(Time())<>V_DATE) Then
doUnitTest = "FAIL" ' not successful
Else
doUnitTest = "OK" ' Ok
End If
End Function
Sub DEV_TST : MsgBox doUnitTest : End Sub