summaryrefslogtreecommitdiff
path: root/csrc/rich4_time.c
blob: 058ee99526be2ecbbcf91dc778c40550885ca0e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <windows.h>
#include "rich4_time.h"

void get_local_time(rich4_time *t)
{
  SYSTEMTIME st;
  GetLocalTime(&st);
  t->day = st.wDay;
  t->month = st.wMonth;
  t->year = st.wYear;
  t->dayofweek = st.wDayOfWeek;
}