summaryrefslogtreecommitdiff
path: root/userland/libc/time/localtime.c
blob: 40ca351d19867b049048feab40f11f2e668bf85a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <time.h>

  struct tm localtime_r = {
      .tm_sec = 0,
      .tm_min = 0,
      .tm_hour = 0,
      .tm_mday = 0,
      .tm_mon = 0,
      .tm_year = 0,
      .tm_wday = 0,
      .tm_yday = 0,
      .tm_isdst = 0,
      .__tm_gmtoff = 0,
      .__tm_zone = 0,
  };

// https://pubs.opengroup.org/onlinepubs/9699919799/functions/localtime.html
struct tm *localtime(const time_t *timer) {
  // TODO: Implement
  return &localtime_r;
}