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
a16ed909
Commit
a16ed909
authored
Dec 18, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented RtlTimeToElapsedTimeFields.
parent
4943ced9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
time.c
dlls/ntdll/time.c
+17
-13
winternl.h
include/winternl.h
+1
-1
No files found.
dlls/ntdll/time.c
View file @
a16ed909
...
...
@@ -545,23 +545,27 @@ void WINAPI RtlSecondsSince1980ToTime( DWORD time, LARGE_INTEGER *res )
/******************************************************************************
* RtlTimeToElapsedTimeFields [NTDLL.@]
*
* ??
*
* PARAMS:
* liTime [?]: ??
* TimeFields [?]: ??
*
* RETURNS:
* Nothing.
*
* FIXME:
* Prototype guessed.
*/
VOID
WINAPI
RtlTimeToElapsedTimeFields
(
PLARGE_INTEGER
liTime
,
PTIME_FIELDS
TimeFields
)
void
WINAPI
RtlTimeToElapsedTimeFields
(
const
LARGE_INTEGER
*
Time
,
PTIME_FIELDS
TimeFields
)
{
FIXME
(
"(%p,%p): stub
\n
"
,
liTime
,
TimeFields
);
LONGLONG
time
;
UINT
rem
;
time
=
RtlExtendedLargeIntegerDivide
(
Time
->
QuadPart
,
TICKSPERSEC
,
&
rem
);
TimeFields
->
Milliseconds
=
rem
/
TICKSPERMSEC
;
/* time is now in seconds */
TimeFields
->
Year
=
0
;
TimeFields
->
Month
=
0
;
TimeFields
->
Day
=
RtlExtendedLargeIntegerDivide
(
time
,
SECSPERDAY
,
&
rem
);
/* rem is now the remaining seconds in the last day */
TimeFields
->
Second
=
rem
%
60
;
rem
/=
60
;
TimeFields
->
Minute
=
rem
%
60
;
TimeFields
->
Hour
=
rem
/
60
;
}
/***********************************************************************
...
...
include/winternl.h
View file @
a16ed909
...
...
@@ -1038,7 +1038,7 @@ NTSTATUS WINAPI RtlSystemTimeToLocalTime(const LARGE_INTEGER*,PLARGE_INTEGER);
void
WINAPI
RtlTimeToTimeFields
(
const
LARGE_INTEGER
*
,
PTIME_FIELDS
);
BOOLEAN
WINAPI
RtlTimeFieldsToTime
(
PTIME_FIELDS
,
PLARGE_INTEGER
);
void
WINAPI
RtlTimeToElapsedTimeFields
(
PLARGE_INTEGER
,
PTIME_FIELDS
);
void
WINAPI
RtlTimeToElapsedTimeFields
(
const
LARGE_INTEGER
*
,
PTIME_FIELDS
);
BOOLEAN
WINAPI
RtlTimeToSecondsSince1970
(
const
LARGE_INTEGER
*
,
PULONG
);
BOOLEAN
WINAPI
RtlTimeToSecondsSince1980
(
const
LARGE_INTEGER
*
,
LPDWORD
);
BOOL
WINAPI
RtlTryEnterCriticalSection
(
RTL_CRITICAL_SECTION
*
);
...
...
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