I'm new in C and I want to know how to get the current weekday where sunday=0, monday=1,...,.
(using time.h if possible)
I want to do something like
Code:#include<stdio.h> #include<time.h> int main(void) { int week_day; if(week_day==0) //if sunday { do something; } }