SURFEX v8.1
General documentation of Surfex
cgmtime.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <time.h>
3 void cgmtime_(int *gmt )
4 {
5  time_t rawtime;
6  struct tm *info;
7  time(&rawtime);
8  info=gmtime(&rawtime);
9  gmt[0]=info->tm_sec;
10  gmt[1]=info->tm_min;
11  gmt[2]=info->tm_hour;
12  gmt[3]=info->tm_mday;
13  gmt[4]=info->tm_mon;
14  gmt[5]=info->tm_year;
15  gmt[6]=info->tm_wday;
16  gmt[7]=info->tm_yday;
17  gmt[8]=info->tm_isdst;
18  return;
19 }
void cgmtime_(int *gmt)
Definition: cgmtime.c:3