Skip to content

Commit 3584fa0

Browse files
cknittzth
authored andcommitted
Date.Time.t -> Date.time
1 parent a45fcbf commit 3584fa0

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

src/Core__Date.mjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
// Generated by ReScript, PLEASE EDIT WITH CARE
22

33

4-
var Time = {};
5-
64
var UTC = {};
75

86
export {
9-
Time ,
107
UTC ,
118
}
129
/* No side effect */

src/Core__Date.res

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
type t = Js.Date.t
22

3-
module Time = {
4-
type t = float
5-
}
3+
type time = float
64

7-
@send external valueOf: t => Time.t = "valueOf"
5+
@send external valueOf: t => time = "valueOf"
86

97
@new external make: unit => t = "Date"
108
@new external fromString: string => t = "Date"
11-
@new external fromTime: Time.t => t = "Date"
9+
@new external fromTime: time => t = "Date"
1210

1311
@new external makeWithYM: (~year: int, ~month: int) => t = "Date"
1412
@new external makeWithYMD: (~year: int, ~month: int, ~date: int) => t = "Date"
@@ -37,18 +35,18 @@ external makeWithYMDHMSM: (
3735
) => t = "Date"
3836

3937
module UTC = {
40-
@val external makeWithYM: (~year: int, ~month: int) => Time.t = "Date.UTC"
41-
@val external makeWithYMD: (~year: int, ~month: int, ~date: int) => Time.t = "Date.UTC"
38+
@val external makeWithYM: (~year: int, ~month: int) => time = "Date.UTC"
39+
@val external makeWithYMD: (~year: int, ~month: int, ~date: int) => time = "Date.UTC"
4240
@val
43-
external makeWithYMDH: (~year: int, ~month: int, ~date: int, ~hours: int) => Time.t = "Date.UTC"
41+
external makeWithYMDH: (~year: int, ~month: int, ~date: int, ~hours: int) => time = "Date.UTC"
4442
@val
4543
external makeWithYMDHM: (
4644
~year: int,
4745
~month: int,
4846
~date: int,
4947
~hours: int,
5048
~minutes: int,
51-
) => Time.t = "Date.UTC"
49+
) => time = "Date.UTC"
5250
@val
5351
external makeWithYMDHMS: (
5452
~year: int,
@@ -57,7 +55,7 @@ module UTC = {
5755
~hours: int,
5856
~minutes: int,
5957
~seconds: int,
60-
) => Time.t = "Date.UTC"
58+
) => time = "Date.UTC"
6159
@val
6260
external makeWithYMDHMSM: (
6361
~year: int,
@@ -67,12 +65,12 @@ module UTC = {
6765
~minutes: int,
6866
~seconds: int,
6967
~milliseconds: int,
70-
) => Time.t = "Date.UTC"
68+
) => time = "Date.UTC"
7169
}
7270

73-
@val external now: unit => Time.t = "Date.now"
71+
@val external now: unit => time = "Date.now"
7472

75-
@send external getTime: t => Time.t = "getTime"
73+
@send external getTime: t => time = "getTime"
7674
@send external getTimezoneOffset: t => int = "getTimezoneOffset"
7775

7876
// Locale

0 commit comments

Comments
 (0)