aboutsummaryrefslogtreecommitdiff
path: root/core/time
Commit message (Collapse)AuthorAgeFilesLines
* Limit to max of 9 fraction second digits, part deux.Jeroen van Rijn2024-05-241-2/+2
|
* Limit to max of 9 fraction second digits.Jeroen van Rijn2024-05-241-1/+1
|
* Add dedicated ISO 8601 parser.Jeroen van Rijn2024-05-241-0/+113
|
* Allow lowercase z TZ indicator.Jeroen van Rijn2024-05-241-1/+1
|
* Allow space (in addition to T and t) as RFC 3339 date/time separator.Vitalii Kravchenko2024-05-241-6/+6
|
* add a default heap/general purpose allocator for wasm to `base:runtime`Laytan Laats2024-05-161-2/+0
|
* Merged with masterAndreas T Jonsson2024-05-021-16/+5
|\
| * sys/unix: add sysctlbyname for darwinLaytan Laats2024-04-301-16/+5
| |
* | Initial commit of NetBSD portAndreas T Jonsson2024-04-161-1/+1
|/
* Remove using from validate_datetimeChris2024-04-091-4/+4
|
* fix js_wasm `time.tick_now`, `performance.now()` returns a floatLaytan Laats2024-04-081-2/+2
|
* 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
* More better validation.Jeroen van Rijn2024-03-202-17/+19
|
* Ensmallen Date struct.Jeroen van Rijn2024-03-202-9/+9
|
* Ensmallen Time struct.Jeroen van Rijn2024-03-202-14/+13
|
* Change Ordinal from int to i64Jeroen van Rijn2024-03-206-84/+92
|
* Add WiP datetime package and tests.Jeroen van Rijn2024-03-186-51/+655
| | | | | | | | | | | | 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.
* Merge branch 'odin-lang:master' into haikuavanspector2024-03-011-0/+8
|\
| * Fix leap year buggingerBill2024-02-291-0/+8
| |
* | fix core and libcavanspector2024-02-251-1/+1
|/
* Remove `core:os` dependency for `base:runtime`gingerBill2024-01-281-1/+1
|
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-282-3/+3
|
* Implement new sys/unix packageflysand72023-10-271-16/+14
|
* Fix calling time.now() in wasm js runtimeDamian Tarnawski2023-10-191-2/+2
|
* Clean up usage of `using` throughout core and vendorgingerBill2023-07-311-17/+19
|
* Merge pull request #2520 from matias-eduardo/masterJeroen van Rijn2023-05-091-2/+2
|\ | | | | Allow for custom sleep duration in tsc frequency fallback
| * Allow custom sleep on tsc fallback.Matias Fernandez2023-05-091-2/+2
| | | | | | | | | | | | This gives the user more control over the spectrum of precision vs. load time on Windows. Spall's output with much lower sleep times is still useful in my experience. NOTE: A better API might be to allow the user to pass the freq as a param to "create_context" in case they already paid for it beforehand, but this seems fine for now.
* | fix spacingLaytan Laats2023-05-061-2/+2
| |
* | add time.weekday procLaytan Laats2023-05-051-0/+6
|/
* add null-impl for tsc_frequency for alt-platformsColin Davidson2023-03-043-14/+6
|
* shuffle tsc around a littleColin Davidson2023-02-221-15/+13
|
* add sleep-fallback and invariant checkColin Davidson2023-02-214-20/+60
|
* more function name changesColin Davidson2023-02-214-53/+47
|
* block all x86 tsc functions in when blockColin Davidson2023-02-213-44/+50
|
* adjust func namesColin Davidson2023-02-212-2/+2
|
* use the libc call on darwin so sysctlbyname worksColin Davidson2023-02-214-37/+21
|
* sort out units to make things happierColin Davidson2023-02-191-1/+1
|
* more typo. yay.Colin Davidson2023-02-191-1/+1
|
* intrinsics typoColin Davidson2023-02-191-1/+1
|
* derp. raw-syscallsColin Davidson2023-02-191-1/+1
|
* oops, add intrinsics importColin Davidson2023-02-191-0/+1
|
* add a tsc frequency get for windowsColin Davidson2023-02-191-0/+28
|
* add osx supportColin Davidson2023-02-191-0/+23
|
* begin adding tsc frequency gettersColin Davidson2023-02-192-1/+65
|
* create _yeild stub for wasi_wasm32 target to avoid compile errorJopStro2022-10-311-0/+2
|
* Heavily improve time handling on Windows for `time.now()` and `os.File_Info`gingerBill2022-10-262-35/+44
|
* Remove `strings` dependency from `core:sys/windows`gingerBill2022-06-021-4/+4
|
* Update `time` procedures for js targetsgingerBill2022-05-211-8/+17
|