Skip to content

Commit 81375e5

Browse files
committed
Make time.components_to_time #optional_ok
1 parent 5511108 commit 81375e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/time/time.odin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ This procedure calculates the time from datetime components supplied in the
916916
arguments to this procedure. If the datetime components don't represent a valid
917917
datetime, the function returns `false` in the second argument.
918918
*/
919-
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) {
919+
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 {
920920
this_date, err := dt.components_to_datetime(year, month, day, hour, minute, second, nsec)
921921
if err != .None {
922922
return

0 commit comments

Comments
 (0)