Commit Graph
193 Commits
Author SHA1 Message Date
Arthur031221anddozn d046345202 Preserve fractional timestamps in timezone conversions
Apply timezone offsets to the normalized nanosecond timestamp.
Test fractional roundtrips, dates before 1970 and nanosecond carry.

Co-authored-by: dozn <16659513+dozn@users.noreply.github.com>
Signed-off-by: Arthur031221 <levi74108520963@gmail.com>
2026-10-04 03:39:11 +08:00
Jx 1279dd6501 typo(time.odin): "nanonseconds" -> "nanoseconds" 2026-07-06 01:50:23 -03:00
Ignacy Koper c01e85ca67 removed core:sys/haiku package
also removes Haiku from core:sys/info, core:os/old, core:path/filepath, core:dynlib, core:time, core:testing, and core:terminal (minor changes)

Signed-off-by: Ignacy Koper <ignacy423@gmail.com>
2026-04-28 19:27:24 +02:00
Ignacy Koper 3e64a72bad removed Essence from supported targets
Signed-off-by: Ignacy Koper <ignacy423@gmail.com>
2026-04-27 11:10:48 +02:00
Håkon Stormo 686cba8ca2 Fix to_string_hms_12 2026-02-19 02:32:00 +01:00
gingerBill 355b8a8c83 Merge pull request #6245 from odin-lang/new_os
`core:os/os2` -> `core:os` integration
2026-02-11 17:53:16 +00:00
gingerBill 3eaa11044c Add user_data: rawptr to time.Benchmark_Options 2026-02-10 20:20:02 +00:00
Jeroen van Rijn e7dbabf668 core:os -> core:os/old && core:os/os2 -> core:os 2026-02-09 15:50:21 +01:00
Jeroen van Rijn 8ed264680b Remove all core:os imports from JS targets
Fix `local_tz_name` on FreeBSD.
2026-02-09 15:07:27 +01:00
Jeroen van Rijn 13228c14e8 More conflicts during rebase 2026-02-08 13:04:44 +01:00
Jeroen van Rijn 0c341123cb More conflicts during rebase 2026-02-08 12:56:00 +01:00
Jeroen van Rijn 2f58776745 More conflicts during rebase 2026-02-08 12:54:20 +01:00
Jeroen van Rijn c265d297b5 core:time/timezone -> os2 2026-02-08 12:48:51 +01:00
A1029384756 916ec44ad1 [tz_unix] add lookup for TZDIR environment variable 2025-12-15 12:36:54 -05:00
A1029384756 7b635c031f [tz_unix] added additional search paths to match musl 2025-12-11 23:13:38 -05:00
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 DavidsonandFeoramund 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