Skip to content

Commit

Permalink
Add gmtime cdelc (#967)
Browse files Browse the repository at this point in the history
Follow-up to <#965>.

Normally Linux RTC should only be in UTC.
  • Loading branch information
Frenzie committed Sep 6, 2019
1 parent 12c3192 commit 1b3c1df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ffi-cdecl/rtc_cdecl.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ cdecl_const(RTC_WKALM_RD)
cdecl_type(time_t)
cdecl_struct(tm)
cdecl_func(time)
cdecl_func(gmtime)
cdecl_func(localtime)
1 change: 1 addition & 0 deletions ffi/rtc_h.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ struct tm {
const char *tm_zone;
};
time_t time(time_t *) __attribute__((nothrow, leaf));
struct tm *gmtime(const time_t *) __attribute__((nothrow, leaf));
struct tm *localtime(const time_t *) __attribute__((nothrow, leaf));
]]

0 comments on commit 1b3c1df

Please sign in to comment.