mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-23 11:29:44 +00:00
5c651a0491
- HTTP -> HTTPS in updater script - Fix Updater script by granting access rights for it. ROSBE-129 - Remove sSVN and it's SVN binaries being useless now. - Update changelog showing the binary updates. - Update Copyright header year -> 2018 - 2.1.5 -> 2.1.6
31 lines
655 B
C
31 lines
655 B
C
/*
|
|
* PROJECT: RosBE - ReactOS Build Environment for Windows.
|
|
* LICENSE: GNU General Public License v2. (see LICENSE.txt)
|
|
* FILE: Tools/getdate.c
|
|
* PURPOSE: Returns System Date
|
|
* COPYRIGHT: Copyright 2018 Peter Ward <dralnix@gmail.com>
|
|
*
|
|
*/
|
|
|
|
|
|
#include <windows.h>
|
|
#include <stdio.h>
|
|
|
|
int main(void)
|
|
{
|
|
SYSTEMTIME LocalSystemTime;
|
|
char CurrentDate[20];
|
|
|
|
GetSystemTime(&LocalSystemTime);
|
|
GetDateFormat(LOCALE_USER_DEFAULT,
|
|
0,
|
|
&LocalSystemTime,
|
|
"MM/dd/yyyy",
|
|
CurrentDate,
|
|
20);
|
|
|
|
printf("%s", CurrentDate);
|
|
|
|
return 0;
|
|
}
|