summaryrefslogtreecommitdiffstats
path: root/app/time_fn.h
blob: 250c500eaa3294a16a78ddbc761a07613e5a31c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
typedef struct {
  unsigned year;
  unsigned is_leap;
  unsigned jday;
  unsigned month;
  unsigned mday;
  unsigned wday;
  unsigned hour;
  unsigned minute;
  unsigned second;
  unsigned nanosecond;
} UTC;

typedef struct {
  int64_t s;
  int64_t ns;
} EPOCH;

typedef struct {
  unsigned hour;
  unsigned minute;
  unsigned second;
  unsigned nanosecond;
} ST;