aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)AuthorLines
2024-03-09fix build failure caused by GNUChloƩ Vulquin-1/+2
2023-06-17allow constructing your own date/tm valuesChloe Kudryavtsev-9/+16
2023-06-02minor native sources cleanupChloe Kudryavtsev-37/+37
2023-06-02improve explanation of rfc3339 and coChloe Kudryavtsev-3/+6
2023-06-02improve iso8601 handlingChloe Kudryavtsev-6/+13
2023-06-01update built-in formatsChloe Kudryavtsev-5/+28
2023-05-31add docs, callables for timegmChloe Kudryavtsev-15/+22
2023-05-31fix JANET_REG on windowsChloe Kudryavtsev-25/+25
the short version appears to be that "ab" "cd" in source to mean "abcd" is a non-standard extension as such, anything that looks like that with a const char[] does not turn out to be true const, and thus can't be used statically this primarily affects MSVC and tcc ... so just make it runtime janet_cfuns_ext only accesses the fields, and therefore all of the data should make it over
2023-05-31do not provide source info or documentation on windowsChloe Kudryavtsev-0/+6
JANET_REG_SD is broken on MSVC
2023-05-31eliminate instances of void* arithmeticChloe Kudryavtsev-4/+4
MSVC doesn't know how to handle it, so treat them as unsigned char*
2023-05-31add timegmChloe Kudryavtsev-0/+35
2023-05-31make GNU expose tm_gmtoff and tm_zoneChloe Kudryavtsev-0/+6
2023-05-31use TM_GMTOFF when it's presentChloe Kudryavtsev-1/+1
2023-05-31do not panic on invalid tm put fieldChloe Kudryavtsev-1/+5
2023-05-31no longer hardcode the offset in time tostringChloe Kudryavtsev-2/+2
2023-05-31add ISO 8601 and "default" strftime prebaked formatsChloe Kudryavtsev-0/+5
2023-05-31get better more/thorough tests for the native wrapperChloe Kudryavtsev-0/+1
2023-05-30adjust abstract type names with namespaceChloe Kudryavtsev-2/+2
2023-05-30remove jd_time_{localtime,utc}Chloe Kudryavtsev-64/+0
the correct approach is to keep it in time_t form as much as possible and apply transformations on that
2023-05-30remove warning from localtimeChloe Kudryavtsev-1/+1
2023-05-13add ability to construct a tm from a dictChloe Kudryavtsev-1/+52
it's very error prone but hey sometimes you need to notably *only* allowed for UTC for a myriad of reasons funnily enough, that means it's largely incompatible with macos for now
2023-05-13add TM_GMTOFF and TM_ZONEChloe Kudryavtsev-5/+62
I might want to be able to write to them, but that seems very error-prone.
2023-05-13add shortcuts for *time(mktime)Chloe Kudryavtsev-4/+76
2023-05-12big updatesChloe Kudryavtsev-96/+93
ok I figured out what the problem was, I think? put is nice too now, no more conversions eh also offsets are nice, makes iterating way easier
2023-05-12fix tm_from_dict year bugChloe Kudryavtsev-1/+1
2023-05-12rewriteChloe Kudryavtsev-0/+397
Split it into multiple things. The new tests will actually reflect how you should use the native library.