aboutsummaryrefslogtreecommitdiff
path: root/src/date.h
diff options
context:
space:
mode:
authorChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-05-13 10:56:58 -0400
committerChloe Kudryavtsev <code@toast.bunkerlabs.net>2023-05-13 10:56:58 -0400
commit926c2766b03c1fc09a5b5de08021d9ed048d821d (patch)
tree3b0cd6d79215ffa5cff4123cc685ef73cbf4b440 /src/date.h
parentremove headers from project.janet (diff)
add shortcuts for *time(mktime)
Diffstat (limited to 'src/date.h')
-rw-r--r--src/date.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/date.h b/src/date.h
index 3661421..615b2bc 100644
--- a/src/date.h
+++ b/src/date.h
@@ -17,7 +17,12 @@ JANET_CFUN(jd_time);
// tm.c
extern const JanetRegExt jd_tm_cfuns[];
struct tm *jd_gettm(Janet *argv, int32_t n);
+struct tm *jd_opttm(Janet *argv, int32_t argc, int32_t n);
struct tm *jd_maketm(void);
JANET_CFUN(jd_mktime);
JANET_CFUN(jd_mktime_inplace);
+JANET_CFUN(jd_time_localtime);
+JANET_CFUN(jd_time_localtime_inplace);
+JANET_CFUN(jd_time_utc);
+JANET_CFUN(jd_time_utc_inplace);
JANET_CFUN(jd_strftime);