@@ -471,42 +471,6 @@ let fromString s = time_clip (parse s)
471471let setTime ~time _t = time_clip time
472472let setUTCTime ~time _t = time_clip time
473473
474- let makeWithYM ~year ~month =
475- let y = if year > = 0. && year < = 99. then 1900. +. year else year in
476- let d = make_day ~year: y ~month ~date: 1. in
477- let t = make_time ~hour: 0. ~min: 0. ~sec: 0. ~ms: 0. in
478- time_clip (local_to_utc (make_date ~day: d ~time: t))
479-
480- let makeWithYMD ~year ~month ~date =
481- let y = if year > = 0. && year < = 99. then 1900. +. year else year in
482- let d = make_day ~year: y ~month ~date in
483- let t = make_time ~hour: 0. ~min: 0. ~sec: 0. ~ms: 0. in
484- time_clip (local_to_utc (make_date ~day: d ~time: t))
485-
486- let makeWithYMDH ~year ~month ~date ~hours =
487- let y = if year > = 0. && year < = 99. then 1900. +. year else year in
488- let d = make_day ~year: y ~month ~date in
489- let t = make_time ~hour: hours ~min: 0. ~sec: 0. ~ms: 0. in
490- time_clip (local_to_utc (make_date ~day: d ~time: t))
491-
492- let makeWithYMDHM ~year ~month ~date ~hours ~minutes =
493- let y = if year > = 0. && year < = 99. then 1900. +. year else year in
494- let d = make_day ~year: y ~month ~date in
495- let t = make_time ~hour: hours ~min: minutes ~sec: 0. ~ms: 0. in
496- time_clip (local_to_utc (make_date ~day: d ~time: t))
497-
498- let makeWithYMDHMS ~year ~month ~date ~hours ~minutes ~seconds =
499- let y = if year > = 0. && year < = 99. then 1900. +. year else year in
500- let d = make_day ~year: y ~month ~date in
501- let t = make_time ~hour: hours ~min: minutes ~sec: seconds ~ms: 0. in
502- time_clip (local_to_utc (make_date ~day: d ~time: t))
503-
504- let utcWithYM ~year ~month = utc ~year ~month ()
505- let utcWithYMD ~year ~month ~date = utc ~year ~month ~date ()
506- let utcWithYMDH ~year ~month ~date ~hours = utc ~year ~month ~date ~hours ()
507- let utcWithYMDHM ~year ~month ~date ~hours ~minutes = utc ~year ~month ~date ~hours ~minutes ()
508- let utcWithYMDHMS ~year ~month ~date ~hours ~minutes ~seconds = utc ~year ~month ~date ~hours ~minutes ~seconds ()
509-
510474let setUTCMilliseconds ~milliseconds t =
511475 if Float. is_nan t then nan
512476 else
0 commit comments