Revision 7457d71f
Von admin vor fast 6 Jahren hinzugefügt
src/os/gwentime_all.c | ||
---|---|---|
/***************************************************************************
|
||
$RCSfile$
|
||
-------------------
|
||
cvs : $Id$
|
||
begin : Sun Nov 23 2003
|
||
copyright : (C) 2003 by Martin Preuss
|
||
copyright : (C) 2019 by Martin Preuss
|
||
email : martin@libchipcard.de
|
||
|
||
***************************************************************************
|
||
... | ... | |
GWEN_LIST_FUNCTIONS(GWEN_TIME_TMPLCHAR, GWEN_TimeTmplChar)
|
||
|
||
|
||
/* ------------------------------------------------------------------------------------------------
|
||
* forward declarations
|
||
* ------------------------------------------------------------------------------------------------
|
||
*/
|
||
|
||
|
||
static GWEN_TIME *GWEN_Time__fromString(const char *s, const char *tmpl, int inUtc);
|
||
|
||
|
||
/* ------------------------------------------------------------------------------------------------
|
||
* implementations
|
||
* ------------------------------------------------------------------------------------------------
|
||
*/
|
||
|
||
|
||
|
||
GWEN_TIME *GWEN_CurrentTime(void)
|
||
{
|
||
... | ... | |
|
||
|
||
|
||
#if 0
|
||
/* TODO: compiler says "function returns an aggregate" */
|
||
struct tm GWEN_Time_toTm(const GWEN_TIME *t)
|
||
{
|
||
... | ... | |
tb=localtime(&tt);
|
||
return *tb;
|
||
}
|
||
#endif
|
||
|
||
|
||
time_t GWEN_Time_toTime_t(const GWEN_TIME *t)
|
||
{
|
Auch abrufbar als: Unified diff
Fixed compiler warnings.