Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
int main(void)
{
time_t tm_now;
struct tm *ptm_now;
time(&tm_now);
ptm_now = localtime(&tm_now);
printf("%s", asctime(ptm_now));
getch();
return 0;
}
tm_hour Hours since midnight (0–23)
tm_isdst Positive if daylight saving time is in effect; 0 if daylight saving time is not in effect; negative if status of daylight saving time is unknown. The C run-time library assumes the United States' rules for implementing the calculation of Daylight Saving Time (DST).
tm_mday Day of month (1–31)
tm_min Minutes after hour (0–59)
tm_mon Month (0–11; January = 0)
tm_sec Seconds after minute (0–59)
tm_wday Day of week (0–6; Sunday = 0)
tm_yday Day of year (0–365; January 1 = 0)
tm_year Year (current year minus 1900)
int stunde = ptm_now->tm_hour;