#include <corecrt_wtime.h>
#include <pshpack8.h>
#include <poppack.h>
Go to the source code of this file.
|
| _ACRTIMP unsigned __cdecl | _getsystime (struct tm *) |
| |
| _ACRTIMP unsigned __cdecl | _setsystime (struct tm *, unsigned) |
| |
| _ACRTIMP char *__cdecl | _strdate (char *) |
| |
| _ACRTIMP errno_t __cdecl | _strdate_s (char *, size_t) |
| |
| _ACRTIMP char *__cdecl | _strtime (char *) |
| |
| _ACRTIMP errno_t __cdecl | _strtime_s (char *, size_t) |
| |
| _ACRTIMP void __cdecl | _tzset (void) |
| |
| _ACRTIMP char *__cdecl | asctime (const struct tm *) |
| |
| _ACRTIMP clock_t __cdecl | clock (void) |
| |
| _ACRTIMP char *__cdecl | _ctime32 (const __time32_t *) |
| |
| _ACRTIMP errno_t __cdecl | _ctime32_s (char *, size_t, const __time32_t *) |
| |
| _ACRTIMP char *__cdecl | _ctime64 (const __time64_t *) |
| |
| _ACRTIMP errno_t __cdecl | _ctime64_s (char *, size_t, const __time64_t *) |
| |
| _ACRTIMP double __cdecl | _difftime32 (__time32_t, __time32_t) |
| |
| _ACRTIMP double __cdecl | _difftime64 (__time64_t, __time64_t) |
| |
| _ACRTIMP struct tm *__cdecl | _gmtime32 (const __time32_t *) |
| |
| _ACRTIMP int __cdecl | _gmtime32_s (struct tm *res, const __time32_t *secs) |
| |
| _ACRTIMP struct tm *__cdecl | _gmtime64 (const __time64_t *) |
| |
| _ACRTIMP int __cdecl | _gmtime64_s (struct tm *res, const __time64_t *secs) |
| |
| _ACRTIMP struct tm *__cdecl | _localtime32 (const __time32_t *) |
| |
| _ACRTIMP errno_t __cdecl | _localtime32_s (struct tm *, const __time32_t *) |
| |
| _ACRTIMP struct tm *__cdecl | _localtime64 (const __time64_t *) |
| |
| _ACRTIMP errno_t __cdecl | _localtime64_s (struct tm *, const __time64_t *) |
| |
| _ACRTIMP __time32_t __cdecl | _mktime32 (struct tm *) |
| |
| _ACRTIMP __time64_t __cdecl | _mktime64 (struct tm *) |
| |
| _ACRTIMP size_t __cdecl | strftime (char *, size_t, const char *, const struct tm *) |
| |
| _ACRTIMP size_t __cdecl | _strftime_l (char *, size_t, const char *, const struct tm *, _locale_t) |
| |
| _ACRTIMP __time32_t __cdecl | _time32 (__time32_t *) |
| |
| _ACRTIMP __time64_t __cdecl | _time64 (__time64_t *) |
| |
| static char * | ctime (const time_t *t) |
| |
| static errno_t | ctime_s (char *res, size_t len, const __time64_t *t) |
| |
| static double | difftime (time_t t1, time_t t2) |
| |
| static struct tm * | gmtime (const time_t *t) |
| |
| static struct tm * | localtime (const time_t *t) |
| |
| static errno_t | localtime_s (struct tm *res, const time_t *t) |
| |
| static time_t | mktime (struct tm *tm) |
| |
| static time_t | time (time_t *t) |
| |
◆ _CLOCK_T_DEFINED
◆ CLOCKS_PER_SEC
◆ clock_t
◆ _ctime32()
Definition at line 1751 of file time.c.
1752{
1755 if (!
t)
return NULL;
1757}
char *CDECL asctime(const struct tm *mstm)
struct tm *CDECL _localtime32(const __time32_t *secs)
◆ _ctime32_s()
Definition at line 1762 of file time.c.
1763{
1766
1772
1777}
#define MSVCRT_CHECK_PMT(x)
int CDECL _localtime32_s(struct tm *time, const __time32_t *secs)
int CDECL asctime_s(char *time, size_t size, const struct tm *mstm)
◆ _ctime64()
◆ _ctime64_s()
Definition at line 1731 of file time.c.
1732{
1735
1741
1746}
int CDECL _localtime64_s(struct tm *res, const __time64_t *secs)
Referenced by ctime_s().
◆ _difftime32()
Definition at line 717 of file time.c.
718{
719 return (double)(time1 - time2);
720}
◆ _difftime64()
Definition at line 709 of file time.c.
710{
711 return (double)(time1 - time2);
712}
Referenced by difftime().
◆ _getsystime()
Definition at line 18 of file systime.c.
19{
24
26
27 tp->tm_year =
Time.wYear - 1900;
28 tp->tm_mon =
Time.wMonth - 1;
29 tp->tm_wday =
Time.wDayOfWeek;
34
36
40 }
41 else
43
44 if (
tp->tm_year % 4 == 0) {
45 if (
tp->tm_year % 100 != 0)
47 else if ((
tp->tm_year-100) % 1000 == 0)
49 }
50
51 for (
i = 0;
i <=
tp->tm_mon;
i++)
53
54 return Time.wMilliseconds;
55}
VOID WINAPI GetLocalTime(OUT LPSYSTEMTIME lpSystemTime)
DWORD WINAPI GetTimeZoneInformation(LPTIME_ZONE_INFORMATION lpTimeZoneInformation)
_In_ uint64_t _In_ uint64_t _In_ uint64_t _In_opt_ traverse_ptr * tp
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static PLARGE_INTEGER Time
#define TIME_ZONE_ID_DAYLIGHT
◆ _gmtime32()
Definition at line 538 of file time.c.
539{
541
542 if(!secs)
544
545 secs64 = *secs;
547}
struct tm *CDECL _gmtime64(const __time64_t *secs)
Referenced by test_gmtime64().
◆ _gmtime32_s()
Definition at line 524 of file time.c.
525{
527
528 if(secs) {
529 secs64 = *secs;
531 }
533}
int CDECL _gmtime64_s(struct tm *res, const __time64_t *secs)
Referenced by test_gmtime64().
◆ _gmtime64()
◆ _gmtime64_s()
Definition at line 464 of file time.c.
465{
470
471 TRACE(
"res %p, secs %p (%I64d).\n",
res, secs, secs ? *secs : 0);
472
476 }
477
480 }
481
483
486
488
498 }
499
502
503 return 0;
504}
BOOL WINAPI FileTimeToSystemTime(IN CONST FILETIME *lpFileTime, OUT LPSYSTEMTIME lpSystemTime)
#define TICKS_1601_TO_1970
#define MAX_GMTIME64_TIME
static void write_invalid_msvcrt_tm(struct tm *tm)
static const int MonthLengths[2][12]
Referenced by _gmtime32_s(), _gmtime64(), ATL::CTime::FormatGmt(), ATL::CTime::GetAsDBTIMESTAMP(), ATL::CTime::GetAsSystemTime(), ATL::CTime::GetGmtTm(), and test_gmtime64().
◆ _localtime32()
◆ _localtime32_s()
◆ _localtime64()
◆ _localtime64_s()
Definition at line 367 of file time.c.
368{
373
375 {
378
381 }
382
385
389
396 }
397
408
409 return 0;
410}
__msvcrt_long MSVCRT___timezone
static void _tzset_init(void)
__msvcrt_long MSVCRT__dstbias
static BOOL is_dst(const SYSTEMTIME *st)
Referenced by _ctime64_s(), _localtime32_s(), _localtime64(), _wctime64_s(), ATL::CTimeSpan::Format(), ATL::CTime::Format(), ATL::CTime::GetDay(), ATL::CTime::GetDayOfWeek(), ATL::CTime::GetHour(), ATL::CTime::GetLocalTm(), ATL::CTime::GetMinute(), ATL::CTime::GetMonth(), ATL::CTime::GetSecond(), ATL::CTime::GetYear(), and localtime_s().
◆ _mktime32()
◆ _mktime64()
◆ _setsystime()
Definition at line 41 of file systime.cpp.
42{
46
47
49
58
61
62 return 0;
63}
#define ERROR_INVALID_PARAMETER
static DOUBLE local_time(DOUBLE time, DateInstance *date)
BOOL WINAPI SetLocalTime(IN CONST SYSTEMTIME *lpSystemTime)
_ACRTIMP __time32_t __cdecl _mktime32(struct tm *)
DWORD WINAPI GetLastError(void)
◆ _strdate()
◆ _strdate_s()
Definition at line 572 of file time.c.
573{
576
580 }
581
585 }
586
588 return 0;
589}
◆ _strftime_l()
◆ _strtime()
◆ _strtime_s()
Definition at line 645 of file time.c.
646{
649
653 }
654
658 }
659
661 return 0;
662}
◆ _time32()
Definition at line 794 of file time.c.
795{
798
800
802 return buf ? *
buf = curtime : curtime;
803}
void CDECL _ftime64(struct __timeb64 *buf)
GLenum GLuint GLenum GLsizei const GLchar * buf
◆ _time64()
◆ _tzset()
Definition at line 127 of file time.c.
128{
131
135
137
138
141
145 }
else if(*
tz ==
'+') {
147 }
153 }
154 if(neg_zone)
156
163
167 }else {
170 }
171
178 }
180}
#define WideCharToMultiByte
char *CDECL getenv(const char *name)
_ACRTIMP __msvcrt_long __cdecl strtol(const char *, char **, int)
void CDECL _lock(int locknum)
void CDECL _unlock(int locknum)
static char tzname_std[64]
static char tzname_dst[64]
static TIME_ZONE_INFORMATION tzi
#define TIME_ZONE_ID_INVALID
Referenced by _Strftime(), gettimeofday(), and localtime().
◆ asctime()
◆ clock()
Definition at line 698 of file time.c.
699{
701
704}
static LONGLONG init_time
NTSTATUS NTAPI NtQuerySystemTime(OUT PLARGE_INTEGER SystemTime)
Referenced by BaseRendererImpl_SetSyncSource(), CKsClockForwarder_Constructor(), DMUSIC_CreateReferenceClockImpl(), IDirectMusic8Impl_SetExternalMasterClock(), LIBXML_ATTR_FORMAT(), master_clock_create(), MediaStreamFilterImpl_GetSyncSource(), MediaStreamFilterImpl_SetSyncSource(), midi_IDirectMusicPort_GetLatencyClock(), QualityControlRender_SetClock(), startTimer(), SynthPortImpl_IDirectMusicPort_GetLatencyClock(), test_clock(), test_query_interface(), and test_wmreader_interfaces().
◆ ctime()
Definition at line 117 of file time.h.
_ACRTIMP char *__cdecl _ctime64(const __time64_t *)
◆ ctime_s()
Definition at line 118 of file time.h.
_ACRTIMP errno_t __cdecl _ctime64_s(char *, size_t, const __time64_t *)
◆ difftime()
Definition at line 119 of file time.h.
_ACRTIMP double __cdecl _difftime64(__time64_t, __time64_t)
◆ gmtime()
Definition at line 120 of file time.h.
_ACRTIMP struct tm *__cdecl _gmtime64(const __time64_t *)
Referenced by create_msft_typelib(), file_write_http_header(), getit(), GetUTCOffset(), GmTimeStr(), HTTP_HttpQueryInfoW(), iso9660_date(), iso9660_ldate(), localtime(), rdp_send_logon_info(), time_to_filetime(), and write_client_lease().
◆ localtime()
Definition at line 121 of file time.h.
_ACRTIMP struct tm *__cdecl _localtime64(const __time64_t *)
Referenced by _tctime(), add_special_defines(), CCabinet::ConvertDateAndTime(), DaytimeHandler(), DoOutput(), file_stat(), FormatDateTime(), get_fattime(), get_test_year(), GetStartSpoolDate(), init(), InitLsMonths(), iso9660_date(), iso9660_ldate(), LANStatusUiDetailsDlg(), logMess(), LsDate(), main(), NcFTPConfirmResumeDownloadProc(), NcFTPConfirmResumeUploadProc(), rdp_send_logon_info(), setup_tables(), SpoolName(), stime_arg1(), stime_arg2(), test_localtime(), test_mktime(), timeToStr(), Trace(), UnDate(), UnLslR(), UnMDTMDate(), write_volume_label(), and xmlMemDisplay().
◆ localtime_s()
Definition at line 122 of file time.h.
_ACRTIMP errno_t __cdecl _localtime64_s(struct tm *, const __time64_t *)
◆ mktime()
Definition at line 123 of file time.h.
_ACRTIMP __time64_t __cdecl _mktime64(struct tm *)
Referenced by __write_formatted_timeT(), ConvertTimeString(), get_ldate(), GetStartSpoolDate(), GetUTCOffset(), main(), rdp_send_logon_info(), stime_arg1(), stime_arg2(), test_mktime(), UnDate(), UnDosLine(), UnLslRLine(), and UnMDTMDate().
◆ strftime()
Definition at line 1537 of file time.c.
1539{
1541}
static size_t strftime_helper(char *str, size_t max, const char *format, const struct tm *mstm, __lc_time_data *time_data, _locale_t loc)
Referenced by add_special_defines(), file_stat(), file_write_http_header(), ATL::CTimeSpan::Format(), ATL::CTime::Format(), ATL::CTime::FormatGmt(), init(), InitLsMonths(), kbd_rc(), logMess(), main(), NcFTPConfirmResumeDownloadProc(), NcFTPConfirmResumeUploadProc(), SpoolName(), test_strftime(), TRIO_ARGS4(), wcsftime(), and xmlMemDisplay().
◆ time()
Definition at line 124 of file time.h.
_ACRTIMP __time64_t __cdecl _time64(__time64_t *)
◆ _daylight
◆ _dstbias
◆ _timezone
◆ _tzname