Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
df00e12e
Commit
df00e12e
authored
Jul 17, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
co_time, new function time_PrintA to print an absolute time
parent
59f08ce9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
src/lib/co/src/co_time.c
src/lib/co/src/co_time.c
+11
-0
src/lib/co/src/co_time.h
src/lib/co/src/co_time.h
+1
-0
No files found.
src/lib/co/src/co_time.c
View file @
df00e12e
...
...
@@ -2293,3 +2293,14 @@ int time_PeriodZoomOut( time_ePeriod *period)
}
return
changed
;
}
//! Print an absolute time. The format should contain %s.
int
time_PrintA
(
const
char
*
format
,
pwr_tTime
*
ts
)
{
char
timstr
[
40
];
time_AtoAscii
(
ts
,
time_eFormat_DateAndTime
,
timstr
,
sizeof
(
timstr
));
return
printf
(
format
,
timstr
);
}
src/lib/co/src/co_time.h
View file @
df00e12e
...
...
@@ -228,6 +228,7 @@ void time_NextPeriod( time_ePeriod period, pwr_tTime *prev_from, pwr_tTim
pwr_tTime
*
from
,
pwr_tTime
*
to
);
int
time_PeriodZoomIn
(
time_ePeriod
*
period
);
int
time_PeriodZoomOut
(
time_ePeriod
*
period
);
int
time_PrintA
(
const
char
*
format
,
pwr_tTime
*
ts
);
#if defined(OS_ELN)
...
...
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