diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-10-23 17:03:44 +0200 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-10-23 17:03:44 +0200 |
| commit | 81375e52ce89af8ce95ec933312ad3b2cb30311b (patch) | |
| tree | 6be81f06968baf80ab35a16c0aca1a906cf5a632 /core | |
| parent | 5511108e412516cf10820d040117eb8b9eb91a87 (diff) | |
Make `time.components_to_time` #optional_ok
Diffstat (limited to 'core')
| -rw-r--r-- | core/time/time.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/time/time.odin b/core/time/time.odin index ac68346b3..2af11c755 100644 --- a/core/time/time.odin +++ b/core/time/time.odin @@ -916,7 +916,7 @@ This procedure calculates the time from datetime components supplied in the arguments to this procedure. If the datetime components don't represent a valid datetime, the function returns `false` in the second argument. */ -components_to_time :: proc "contextless" (#any_int year, #any_int month, #any_int day, #any_int hour, #any_int minute, #any_int second: i64, #any_int nsec := i64(0)) -> (t: Time, ok: bool) { +components_to_time :: proc "contextless" (#any_int year, #any_int month, #any_int day, #any_int hour, #any_int minute, #any_int second: i64, #any_int nsec := i64(0)) -> (t: Time, ok: bool) #optional_ok { this_date, err := dt.components_to_datetime(year, month, day, hour, minute, second, nsec) if err != .None { return |