Jonathan Marler
010ca69864
add functions to decode an epoch timestamp ( #9040 )
...
* add functions to decode an epoch timestamp
The code added here is alternative to the libc gmtime function. This function takes a unix epoch timestamp and decodes it into things like the year/day/time/etc. I looked at various libc implementations to see how it was implemented and this appears to be correct. I reorganized it so that applications can choose which data they need rather than calcualting it all in a single function. The data structures layout the order of operations required to decode various things like the year/month or time of day.
* set Month.jan to 1 instead of 0 to avoid +1 in conversion to numeric
* add another test
* remove unnecessary comptimeMod
2021-09-14 19:02:23 +03:00
..
2021-08-29 11:57:32 +02:00
2021-09-01 12:21:30 -07:00
2021-09-12 23:36:44 -04:00
2021-08-24 12:25:09 -07:00
2021-09-13 17:31:17 +02:00
2021-09-01 17:54:06 -07:00
2021-09-08 13:40:43 -04:00
2021-08-24 12:25:09 -07:00
2021-09-01 17:54:07 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-09-01 17:54:06 -07:00
2021-08-24 12:25:09 -07:00
2021-09-01 17:54:06 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-09-12 23:36:44 -04:00
2021-08-24 12:25:09 -07:00
2021-09-07 19:44:21 +03:00
2021-08-12 10:48:54 -07:00
2021-08-24 12:25:09 -07:00
2021-09-01 17:54:06 -07:00
2021-09-14 19:02:23 +03:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-09-12 23:36:44 -04:00
2021-09-14 11:36:26 +02:00
2021-08-31 00:32:34 -04:00
2021-09-12 19:32:40 +03:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-09-12 19:35:03 -04:00
2021-09-01 17:54:06 -07:00
2021-09-01 17:54:07 -07:00
2021-09-06 20:10:42 +03:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-09-09 14:25:44 +02:00
2021-08-24 12:25:09 -07:00
2021-09-01 17:54:07 -07:00
2021-09-01 17:54:06 -07:00
2021-09-01 17:54:06 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-09-01 17:54:06 -07:00
2021-08-24 12:25:09 -07:00
2021-09-01 17:54:06 -07:00
2021-09-01 17:54:07 -07:00
2021-09-03 06:50:27 -07:00
2021-08-24 12:25:09 -07:00
2021-09-01 17:54:06 -07:00
2021-08-24 12:25:09 -07:00
2021-09-01 17:54:06 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-31 23:05:01 +02:00
2021-09-14 19:02:23 +03:00
2021-08-29 11:57:32 +02:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-09-01 17:54:06 -07:00
2021-08-24 12:25:09 -07:00
2021-09-12 23:36:44 -04:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-09-13 20:11:35 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-09-01 17:54:07 -07:00
2021-09-14 19:02:23 +03:00
2021-08-24 12:25:09 -07:00
2021-08-29 11:57:32 +02:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-09-07 15:08:51 -04:00