OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
gmt_offset.c
Go to the documentation of this file.
1 #include <timeutils.h>
2 
3 
4 /* -------------------------------------------------------------- */
5 /* gmt_offset) - determines offset from local to GMT time n secs */
6 
7 /* -------------------------------------------------------------- */
8 time_t gmt_offset(void) {
9  struct tm trec;
10  trec.tm_year = 70;
11  trec.tm_mon = 0;
12  trec.tm_mday = 1;
13  trec.tm_hour = 0;
14  trec.tm_min = 0;
15  trec.tm_sec = 0;
16  trec.tm_isdst = 0;
17 
18  return (mktime(&trec));
19 }
20 
time_t gmt_offset(void)
Definition: gmt_offset.c:8
float tm[MODELMAX]