uid issue

This commit is contained in:
KittenPopo
2021-07-24 21:11:47 -07:00
commit c2130ba4e9
13850 changed files with 6241419 additions and 0 deletions

View File

@ -0,0 +1,32 @@
//===== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======//
//
// Purpose: components of tier0 PLAT_ with (at least mostly) platform independent implementations.
//
// $NoKeywords: $
//===========================================================================//
#include "pch_tier0.h"
#include <time.h>
void GetCurrentDayOfTheWeek( int *pDay )
{
struct tm *pNewTime;
time_t long_time;
time( &long_time ); /* Get time as long integer. */
pNewTime = localtime( &long_time ); /* Convert to local time. */
*pDay = pNewTime->tm_wday;
}
void GetCurrentDayOfTheYear( int *pDay )
{
struct tm *pNewTime;
time_t long_time;
time( &long_time ); /* Get time as long integer. */
pNewTime = localtime( &long_time ); /* Convert to local time. */
*pDay = pNewTime->tm_yday;
}