Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
f207da89
Commit
f207da89
authored
Sep 12, 2017
by
Sven Meier
Committed by
Adam Wujek
Aug 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
utc_leap_test: fixed print out
parent
9cf86c46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
utc_leap_test.c
userspace/tools/utc_leap_test.c
+2
-9
No files found.
userspace/tools/utc_leap_test.c
View file @
f207da89
...
...
@@ -216,19 +216,12 @@ int main(int argc, char **argv)
unix_time_set_utc_offset
(
offset
,
leap59
,
leap61
);
}
/* Get the UTC time */
unix_time_get_utc_offset
(
&
offset
,
&
leap59
,
&
leap61
);
printf
(
"new current time after offset and leap %d:%d:%d, offset=%d, l59=%d, l61=%d
\n
"
,
hours
,
minutes
,
seconds
,
offset
,
leap59
,
leap61
);
unix_time_get_utc_time
(
&
hours
,
&
minutes
,
&
seconds
);
for
(
i
=
0
;
i
<
20
;
i
++
)
{
/* Get the UTC time */
unix_time_get_utc_offset
(
&
offset
,
&
leap59
,
&
leap61
);
printf
(
"new current time after offset and leap %d:%d:%d, offset=%d, l59=%d, l61=%d
\n
"
,
hours
,
minutes
,
seconds
,
offset
,
leap59
,
leap61
);
unix_time_get_utc_time
(
&
hours
,
&
minutes
,
&
seconds
);
printf
(
"new current time after offset and leap %d:%d:%d, offset=%d, l59=%d, l61=%d
\n
"
,
hours
,
minutes
,
seconds
,
offset
,
leap59
,
leap61
);
sleep
(
1
);
}
}
...
...
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