Commit Graph

178 Commits

Author SHA1 Message Date
gingerBill
bf43dbaf5a Add @(require_results) to core:time 2025-11-27 10:14:21 +00:00
Jeroen van Rijn
81375e52ce Make time.components_to_time #optional_ok 2025-10-23 17:03:44 +02:00
Jeroen van Rijn
7a9ea3ee6d Further overhaul of package line comments. 2025-10-09 23:05:29 +02:00
Yuriy Grynevych
2bbd0a45c0 [core:time] time_js: tick_now(): Use f64 (was f32) as a return type of odin_env.tick_now(). 2025-09-08 17:57:28 +03:00
gingerBill
bb4bc316a4 for in string16; Support string16 across core 2025-08-02 12:20:35 +01:00
Colin Davidson
b5a8a3cf94 require to reduce files for a one line function 2025-07-29 13:58:30 -07:00
Colin Davidson
42f2891f35 attempt to fix x86 osx build 2025-07-29 13:54:56 -07:00
Colin Davidson
35a95fc3e4 workaround to avoid excessive file-splitting 2025-07-29 13:28:04 -07:00
Colin Davidson
517e392abe if -> when 2025-07-29 13:18:40 -07:00
Colin Davidson
9a2e6fff48 switch to read_cycle_counter_frequency from arm64_read_cycle_counter_freq, trap on invalid arch 2025-07-29 12:21:46 -07:00
Colin Davidson
fe2b48dec4 enum pass 2025-07-29 11:48:58 -07:00
Colin Davidson
b5629aeed9 copy-paste typo fix 2025-07-28 16:34:53 -07:00
Colin Davidson
1a9b128bfc update linux-arm to use the asm intrin for freq 2025-07-28 16:32:10 -07:00
Colin Davidson
76b00c046b arm64 has an invariant tsc too 2025-07-28 15:30:24 -07:00
Colin Davidson
1848e0df05 use the correct frequency for the arm tsc timer 2025-07-28 15:10:42 -07:00
Colin Davidson
2dae1d8a41 fix tabbing 2025-07-07 14:36:31 -07:00
Colin Davidson
389439ccb9 Merge branch 'master' into macharena 2025-07-07 14:34:05 -07:00
Colin Davidson
3407bd7cf9 better handle offset-0 case 2025-06-08 17:03:43 -07:00
Colin Davidson
04481e0fd2 Merge branch 'master' into macharena 2025-06-08 16:17:32 -07:00
Colin Davidson
b1ed22d84f fix frequency grab 2025-06-08 16:16:34 -07:00
Jeroen van Rijn
ae5c92ac38 Enable odin check examples/all for JS. 2025-06-04 11:08:25 +02:00
Barinzaya
6400693197 Added tick_add proc to core:time. 2025-04-24 09:20:31 -04:00
dozn
af0d6426c0 [core:time/timezone] Nanoseconds Not Preserved on Calls to timezone.datetime_to_tz 2025-04-04 04:01:02 -07:00
flysand7
47eefb3f21 [datetime]: Remove the definition of EPOCH 2025-03-06 20:28:12 +11:00
dozn
dfd826ed86 Fix Times Which Support DST on Windows 2025-01-20 03:57:36 -08:00
Laytan Laats
e3c0cc9dfc time: add haiku 2025-01-11 00:18:36 +01:00
gingerBill
acbb14d87e Fix typo 2025-01-05 13:10:29 +00:00
gingerBill
d718db473c Use array with linear search rather than a hash map. 2025-01-05 13:08:01 +00:00
Colin Davidson
da3a7a25c7 oops 2024-11-20 14:07:23 -08:00
Colin Davidson
3bb73eacfc fix parsing issue around utc/localtime split 2024-11-20 12:09:32 -08:00
Colin Davidson
b2d1fbba9c oops, missed a comma 2024-11-05 03:48:47 -08:00
Colin Davidson
c9158b3220 add new test, better fail-check, and non-transitioning tz fix 2024-11-05 03:44:07 -08:00
Jeroen van Rijn
00ec862b63 Merge pull request #4335 from colrdavidson/datetime_tz
Add Timezone Support to Odin
2024-10-22 10:18:38 +02:00
Colin Davidson
d8696badb6 add better comment about freebsd hacks 2024-10-21 21:58:32 -07:00
Colin Davidson
9e00d610c8 Update core/time/timezone/tzdate.odin
Co-authored-by: Feoramund <161657516+Feoramund@users.noreply.github.com>
2024-10-21 21:49:19 -07:00
Colin Davidson
d393d3292f Update core/time/timezone/tzdate.odin
Co-authored-by: Feoramund <161657516+Feoramund@users.noreply.github.com>
2024-10-21 21:48:58 -07:00
Barinzaya
142e7d6b52 Fixed time overflows that occur when running in a 32-bit Linux target. 2024-10-15 13:43:28 -04:00
Colin Davidson
5bf8852b2e add julian day rule resolvers 2024-10-10 10:31:46 -07:00
Colin Davidson
19c2b4d54f swap datetime_to_str to aprintf 2024-10-10 10:17:02 -07:00
Colin Davidson
fcaa3abe47 delete local_str with the appropriate allocator 2024-10-10 09:24:50 -07:00
Colin Davidson
ba6203f8d3 sort out windows enum names too 2024-10-10 09:19:04 -07:00
Colin Davidson
4c8e355444 tweaks per laytan suggestions 2024-10-10 09:14:29 -07:00
Colin Davidson
a6502c3e8c Initial cut of timezones 2024-10-09 19:26:43 -07:00
Simon Cruanes
a1349d8776 fix vet warnings 2024-09-22 00:08:07 -04:00
Simon Cruanes
32e13f17ae Apply suggestions from code review
Co-authored-by: flysand7 <yyakut.ac@gmail.com>
2024-09-21 21:08:35 -04:00
Simon Cruanes
a89d22b291 add time.time_to_rfc3339, a printer to RFC3339 dates
this is the counterpart to the existing parsing function
`rfc3339_to_time_utc` and others. It prints the timestamp as a string,
allocated dynamically.
2024-09-21 00:47:21 -04:00
Karl Zylinski
19f0127e55 Moved all packages in core, base, vendor, tests and examples to use new #+ file tag syntax. 2024-09-14 18:27:49 +02:00
Feoramund
f6f2c67f37 Add time.time_to_datetime 2024-09-03 00:55:09 -04:00
Laytan Laats
caef37bc18 orca: implement core:time and core:log 2024-08-23 18:25:10 +02:00
Jeroen van Rijn
daa0779c01 Rewrite compound_to_time without using i128. 2024-08-20 18:50:05 +02:00