aboutsummaryrefslogtreecommitdiff
path: root/core/time/time.odin
Commit message (Collapse)AuthorAgeFilesLines
* Add `@(require_results)` to `core:time`gingerBill2025-11-271-3/+46
|
* Make `time.components_to_time` #optional_okJeroen van Rijn2025-10-231-1/+1
|
* Further overhaul of package line comments.Jeroen van Rijn2025-10-091-0/+1
|
* Initial cut of timezonesColin Davidson2024-10-091-2/+2
|
* Add `time.time_to_datetime`Feoramund2024-09-031-0/+18
|
* Rewrite compound_to_time without using i128.Jeroen van Rijn2024-08-201-6/+9
|
* Fix `time.precise_clock` on 32-bit platforms.Jeroen van Rijn2024-08-101-7/+8
|
* Fixed time.precise_clockJeroen van Rijn2024-08-101-3/+38
|
* Revert "Add time.precise_clock_from_time + time.precise_clock_from_duration"Jeroen van Rijn2024-08-101-34/+1
| | | | This reverts commit c9ca192f33411a6be611970401897f68ae5cf7d7.
* Add time.precise_clock_from_time + time.precise_clock_from_durationJeroen van Rijn2024-08-101-1/+34
|
* Use constants in example.Jeroen van Rijn2024-07-251-5/+5
|
* Improve docs.Jeroen van Rijn2024-07-251-182/+135
|
* Add `time.to_string*` formatters.Jeroen van Rijn2024-07-251-0/+336
|
* Clarify core:time Unix timestampJeroen van Rijn2024-07-221-2/+3
|
* [time]: Document all functionsflysand72024-07-201-8/+276
|
* Add time.from_nanosecondsJeroen van Rijn2024-06-231-0/+4
|
* Add `@(rodata)` and `@(static, rodata)` where appropriategingerBill2024-06-061-0/+1
|
* Update time.odinblob18072024-03-261-1/+1
|
* Update time.odinblob18072024-03-261-1/+1
|
* Updated windows time period callblob18072024-03-261-1/+2
| | | | | Updated win32.time_begin_period to windows.timeBeginPeriod Added a note about calling windows.timeEndPeriod once you don't need accurate_sleep, as per MS's docs https://learn.microsoft.com/en-us/windows/win32/api/timeapi/nf-timeapi-timebeginperiod#remarks
* Change Ordinal from int to i64Jeroen van Rijn2024-03-201-2/+5
|
* Add WiP datetime package and tests.Jeroen van Rijn2024-03-181-51/+23
| | | | | | | | | | | | A new package `core:time/datetime` has been added which can represent moments much further in the past and future than `core:time`. It is based on *the* reference work on the subject, Calendrical Calculations Ultimate Edition, Reingold & Dershowitz. More procedures will be added to it in the future, to for example calculate the 3rd Thursday in March to figure out holidays. The package has been tested for more than a year and can handle dates 25 quadrillion years into the past and future with 64-bit day ordinals, or 5 million with 32-bit ones. This also fixes a longstanding bug where converting between YYYY-MM:DD hh:mm:ss and `time.Time` and back could result in a mismatch. RFC 3339 timestamps can now also be parsed using the `core:time` package.
* Fix leap year buggingerBill2024-02-291-0/+8
|
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-281-1/+1
|
* Clean up usage of `using` throughout core and vendorgingerBill2023-07-311-17/+19
|
* fix spacingLaytan Laats2023-05-061-2/+2
|
* add time.weekday procLaytan Laats2023-05-051-0/+6
|
* Heavily improve time handling on Windows for `time.now()` and `os.File_Info`gingerBill2022-10-261-32/+34
|
* Clean up `core:time` to be consistent across all platformsgingerBill2022-05-121-13/+29
|
* Update time.odinJeroen van Rijn2022-04-161-1/+6
| | | | Add caveats.
* time: remove unnecessary yieldhikari2022-04-161-5/+1
|
* time: yield accurate_sleep instead of relaxing the cpuhikari2022-04-161-2/+8
|
* time: add accurate sleep procedurehikari2022-04-161-0/+31
|
* better naming conventions for stopwatch procedures + fieldsPhil H2021-10-281-10/+10
|
* Add clock overloads for Duration and StopwatchPhil2021-10-281-4/+19
|
* Add a stopwatch to time.odinPhil2021-10-281-1/+30
|
* Remove unneeded semicolons from the core librarygingerBill2021-08-311-137/+137
|
* Enforce `core:builtin` and `core:intrinsics` for importsgingerBill2021-08-211-1/+1
|
* datetime_to_time's ok should default to true.Jeroen van Rijn2021-05-021-5/+4
|
* Replace many `foreign` llvm calls with intrinsicsgingerBill2021-04-251-5/+3
|
* Correct overflowed months.Jeroen van Rijn2021-03-231-1/+1
|
* Add core:datetime_to_timeJeroen van Rijn2021-03-231-0/+44
| | | | | | datetime_to_time takes separate parameters for date and time values and returns a time.Time and an `ok` bool. If the values are out of range, they're considered modulo and ok will be set to false.
* Minimize unneeded castsgingerBill2021-03-031-5/+5
|
* Replace usage of `inline proc` with `#force_inline proc` in the core librarygingerBill2021-02-231-1/+1
|
* Update package reflectgingerBill2021-01-271-1/+11
|
* Add time.Tick for performance related timingsgingerBill2021-01-091-0/+11
|
* Add `package path/filepath`; Add `os.stat` for windows (TODO: unix)gingerBill2020-09-251-0/+14
|
* Remove usage of `do` in core librarygingerBill2020-09-231-8/+12
|
* Fix #712gingerBill2020-08-261-2/+4
|
* Add `time.read_cycle_counter`gingerBill2020-06-221-0/+8
|