ReactOS  0.4.15-dev-4871-g4471ee4
ctime.c File Reference
#include <errno.h>
#include <tchar.h>
#include <time.h>
#include "bitsfixup.h"
Include dependency graph for ctime.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define RC_INVOKED   1


_CRTIMP errno_t __cdecl localtime_s (struct tm *_Tm, const time_t *_Time)
errno_t _tctime_s (_TCHAR *buffer, size_t numberOfElements, const time_t *time)
_TCHAR_tctime (const time_t *ptime)

Macro Definition Documentation



Definition at line 8 of file ctime.c.


#define RC_INVOKED   1

Definition at line 11 of file ctime.c.

Function Documentation

◆ _tctime()

_TCHAR* _tctime ( const time_t ptime)

Definition at line 46 of file ctime.c.

47 {
48  struct tm *ptm = localtime(ptime);
49  if (!ptm)
50  {
51  return 0;
52  }
53  return _tasctime(ptm);
54 }
_TCHAR * _tasctime(const struct tm *ptm)
Definition: asctime.c:150
Definition: time.h:68
_CRTIMP struct tm *__cdecl localtime(const time_t *_Time)
Definition: time.h:416

◆ _tctime_s()

errno_t _tctime_s ( _TCHAR buffer,
size_t  numberOfElements,
const time_t time 

Definition at line 27 of file ctime.c.

28 {
29  struct tm _tm;
31  if (localtime_s(&_tm, time) == EINVAL)
32  {
33  return EINVAL;
34  }
35  return _tasctime_s(buffer, numberOfElements, &_tm);
36 }
Definition: arc.h:39
GLuint buffer
Definition: glext.h:5915
__u16 time
Definition: mkdosfs.c:366
static size_t numberOfElements
Definition: string.c:87
errno_t _tasctime_s(_TCHAR *buffer, size_t numberOfElements, const struct tm *ptm)
Definition: asctime.c:106
Definition: time.h:68
_CRTIMP errno_t __cdecl localtime_s(struct tm *_Tm, const time_t *_Time)
Definition: time.h:417

◆ localtime_s()

_CRTIMP errno_t __cdecl localtime_s ( struct tm _Tm,
const time_t _Time 

Definition at line 417 of file time.h.

417 { return _localtime64_s(_Tm,_Time); }
_CRTIMP errno_t __cdecl _localtime64_s(_Out_ struct tm *_Tm, _In_ const __time64_t *_Time)
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm * _Tm
Definition: time.h:148
_In_ size_t _In_ const __time32_t * _Time
Definition: time.h:191

Referenced by _tctime_s().