ProviewR Programmer's Reference Manual
V6.1.4
|
Include file for Time management. More...
#include "pwr.h"
#include <time.h>
Go to the source code of this file.
Enumerations | |
enum | time_eFormat { time_eFormat_DateAndTime = 0 , time_eFormat_Time = 1 , time_eFormat_ComprDateAndTime = 2 , time_eFormat_NumDateAndTime = 3 , time_eFormat_FileDateAndTime = 4 , time_eFormat_FileDate = 5 , time_eFormat_DateAndTimeLoc = 6 , time_eFormat_TimeAndDate = 7 } |
Time string format. More... | |
Functions | |
int | time_IsNull (pwr_tTime *t1) |
Test if time is Null. | |
pwr_tTime * | time_Aadd (pwr_tTime *, pwr_tTime *, pwr_tDeltaTime *) |
Add an absolute time and a delta time. More... | |
pwr_tTime * | time_Aadd_NE (pwr_tTime *, pwr_tTime *, pwr_tDeltaTime *) |
Add an absolute time and a delta time. More... | |
int | time_Acomp (pwr_tTime *, pwr_tTime *) |
Compare two timespecs. More... | |
int | time_Acomp_NE (pwr_tTime *, pwr_tTime *) |
Compare two timespecs. More... | |
pwr_tDeltaTime * | time_Adiff (pwr_tDeltaTime *, pwr_tTime *, pwr_tTime *) |
Subtract a time from a time,. More... | |
pwr_tDeltaTime * | time_Adiff_NE (pwr_tDeltaTime *, pwr_tTime *, pwr_tTime *) |
Subtract a time from a time,. More... | |
pwr_tTime * | time_Asub (pwr_tTime *, pwr_tTime *, pwr_tDeltaTime *) |
Subtract a delta time from a time,. More... | |
pwr_tTime * | time_Asub_NE (pwr_tTime *, pwr_tTime *, pwr_tDeltaTime *) |
Subtract a delta time from a time,. More... | |
pwr_tDeltaTime * | time_Dabs (pwr_tDeltaTime *, pwr_tDeltaTime *) |
Take the absolute walue of a delta time. More... | |
pwr_tDeltaTime * | time_Dabs_NE (pwr_tDeltaTime *, pwr_tDeltaTime *) |
Take the absolute walue of a delta time. More... | |
pwr_tDeltaTime * | time_Dadd (pwr_tDeltaTime *, pwr_tDeltaTime *, pwr_tDeltaTime *) |
Add two delta times, the result is also delta. More... | |
pwr_tDeltaTime * | time_Dadd_NE (pwr_tDeltaTime *, pwr_tDeltaTime *, pwr_tDeltaTime *) |
Add two delta times, the result is also delta. More... | |
pwr_tDeltaTime * | time_Dneg (pwr_tDeltaTime *, pwr_tDeltaTime *) |
Negate a delta time,. More... | |
pwr_tDeltaTime * | time_Dneg_NE (pwr_tDeltaTime *, pwr_tDeltaTime *) |
Negate a delta time,. More... | |
pwr_tDeltaTime * | time_Dsub (pwr_tDeltaTime *, pwr_tDeltaTime *, pwr_tDeltaTime *) |
Subtract two delta times. More... | |
pwr_tDeltaTime * | time_Dsub_NE (pwr_tDeltaTime *, pwr_tDeltaTime *, pwr_tDeltaTime *) |
Subtract two delta times. More... | |
int | time_Dcomp (pwr_tDeltaTime *, pwr_tDeltaTime *) |
Compare two delta times. More... | |
int | time_Dcomp_NE (pwr_tDeltaTime *, pwr_tDeltaTime *) |
Compare two delta times. More... | |
pwr_tStatus | time_DtoAscii (pwr_tDeltaTime *, int, char *, int) |
Convert a delta time to ascii string. | |
pwr_tStatus | time_AtoAscii (pwr_tTime *, time_eFormat, char *, int) |
Convert timespec to ascii. More... | |
pwr_tStatus | time_AsciiToD (const char *, pwr_tDeltaTime *) |
Convert ascii to timespec. | |
pwr_tStatus | time_AsciiToA (const char *, pwr_tTime *) |
Convert ascii time to timespec. | |
pwr_tStatus | time_TmToAscii (struct tm *, time_eFormat, char *, int) |
Convert time struct to string. | |
pwr_tStatus | time_AsciiToTm (const char *, struct tm *) |
Convert timestring to struct. | |
pwr_tDeltaTime * | time_MsToD (pwr_tDeltaTime *, pwr_tInt32) |
Convert millisec to timespec. More... | |
pwr_tDeltaTime * | time_FloatToD (pwr_tDeltaTime *, pwr_tFloat32) |
Convert float to time. More... | |
pwr_tDeltaTime * | time_Float64ToD (pwr_tDeltaTime *, pwr_tFloat64) |
Convert double to time. More... | |
pwr_tFloat32 | time_DToFloat (pwr_tFloat32 *, pwr_tDeltaTime *) |
Convert time to Float32. More... | |
pwr_tFloat64 | time_DToFloat64 (pwr_tFloat64 *, pwr_tDeltaTime *) |
Convert time to Float64. | |
time_tClock | time_DtoClock (pwr_tStatus *, pwr_tDeltaTime *) |
Convert delta time to clock time. | |
pwr_tDeltaTime * | time_ClockToD (pwr_tStatus *, pwr_tDeltaTime *, time_tClock) |
Convert clock time to delta time. | |
pwr_tDeltaTime * | time_ZeroD (pwr_tDeltaTime *) |
Zero a delta time. | |
int | time_GetTime (pwr_tTime *ts) |
Get current time. | |
int | time_GetTimeMonotonic (pwr_tTime *ts) |
Get current monotonic time. | |
char * | time_GetTimeAscii (time_eFormat format) |
Get current time in ascii. | |
int | time_PeriodPreviousWeek (pwr_tTime *time, pwr_tTime *from, pwr_tTime *to) |
Calculate start and end time for previous week. More... | |
void | time_PreviousDayBreak (pwr_tTime *time, pwr_tTime *daybreak) |
Calculate previous daybreak. | |
int | time_PrintA (const char *format, pwr_tTime *ts) |
Print an absolute time. The format should contain s. | |
pwr_tFloat32 | time_AdiffToFloat (pwr_tTime *t, pwr_tTime *s) |
Subtract a time from a time and return the differens. More... | |
Include file for Time management.
Definition in file co_time.h.