Skip to content

Commit 2a69306

Browse files
committed
Remove makeWith* in Js.Date
1 parent ed67df5 commit 2a69306

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed

packages/Js/lib/Js_date.ml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -471,42 +471,6 @@ let fromString s = time_clip (parse s)
471471
let setTime ~time _t = time_clip time
472472
let 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-
510474
let setUTCMilliseconds ~milliseconds t =
511475
if Float.is_nan t then nan
512476
else

packages/Js/lib/Js_date.mli

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ val getUTCMilliseconds : t -> float
2727
val getUTCMinutes : t -> float
2828
val getUTCMonth : t -> float
2929
val getUTCSeconds : t -> float
30-
val makeWithYM : year:float -> month:float -> t
31-
val makeWithYMD : year:float -> month:float -> date:float -> t
32-
val makeWithYMDH : year:float -> month:float -> date:float -> hours:float -> t
33-
val makeWithYMDHM : year:float -> month:float -> date:float -> hours:float -> minutes:float -> t
34-
val makeWithYMDHMS : year:float -> month:float -> date:float -> hours:float -> minutes:float -> seconds:float -> t
35-
val utcWithYM : year:float -> month:float -> float
36-
val utcWithYMD : year:float -> month:float -> date:float -> float
37-
val utcWithYMDH : year:float -> month:float -> date:float -> hours:float -> float
38-
val utcWithYMDHM : year:float -> month:float -> date:float -> hours:float -> minutes:float -> float
39-
val utcWithYMDHMS : year:float -> month:float -> date:float -> hours:float -> minutes:float -> seconds:float -> float
4030
val setDate : date:float -> t -> float
4131
val setFullYear : year:float -> ?month:float -> ?date:float -> t -> float
4232
val setHours : hours:float -> ?minutes:float -> ?seconds:float -> ?milliseconds:float -> t -> float

0 commit comments

Comments
 (0)