Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
fdf4b1e7
Commit
fdf4b1e7
authored
Aug 26, 2014
by
Shuai Meng
Committed by
Alexandre Julliard
Aug 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vbscript: Implemented Time.
parent
88d7f611
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
global.c
dlls/vbscript/global.c
+14
-2
api.vbs
dlls/vbscript/tests/api.vbs
+1
-0
No files found.
dlls/vbscript/global.c
View file @
fdf4b1e7
...
...
@@ -1418,8 +1418,20 @@ static HRESULT Global_Date(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARI
static
HRESULT
Global_Time
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
SYSTEMTIME
lt
;
UDATE
ud
;
DATE
time
;
HRESULT
hres
;
TRACE
(
"
\n
"
);
GetLocalTime
(
&
lt
);
ud
.
st
=
lt
;
ud
.
wDayOfYear
=
0
;
hres
=
VarDateFromUdateEx
(
&
ud
,
0
,
VAR_TIMEVALUEONLY
,
&
time
);
if
(
FAILED
(
hres
))
return
hres
;
return
return_date
(
res
,
time
);
}
static
HRESULT
Global_Day
(
vbdisp_t
*
This
,
VARIANT
*
arg
,
unsigned
args_cnt
,
VARIANT
*
res
)
...
...
dlls/vbscript/tests/api.vbs
View file @
fdf4b1e7
...
...
@@ -1238,5 +1238,6 @@ Call ok(Approch(Log(CByte(2)), 0.6931), "Log(CByte(2)) = " & Log(CByte(2)))
Call
ok
(
getVT
(
Log
(
CByte
(
2
)))
=
"VT_R8"
,
"getVT(Log(CByte(2))) = "
&
getVT
(
Log
(
CByte
(
2
))))
Call
ok
(
getVT
(
Date
)
=
"VT_DATE"
,
"getVT(Date) = "
&
getVT
(
Date
))
Call
ok
(
getVT
(
Time
)
=
"VT_DATE"
,
"getVT(Time) = "
&
getVT
(
Time
))
Call
reportSuccess
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment