Skip to content

Commit

Permalink
Merge pull request #93 from anmonteiro/patch-1
Browse files Browse the repository at this point in the history
add `fromUnixTime`
  • Loading branch information
dmtrKovalenko authored Jul 24, 2020
2 parents 702e9be + acf9fe5 commit 38c1d67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DateFns.re
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ external parseISO: string => date = "default";

[@bs.module "date-fns/fp/toDate"] external toDate: int => date = "default";

[@bs.module "date-fns/fp/fromUnixTime"] external fromUnixTime: float => date = "default";

/***************/
/* Day helpers */
/***************/
Expand Down Expand Up @@ -552,4 +554,4 @@ let subYears = curry2(uncurried_subYears);
external uncurried_lastDayOfYear: date => date = "default";

[@bs.module "date-fns/fp/isLeapYear"]
external uncurried_isLeapYear: date => bool = "default";
external uncurried_isLeapYear: date => bool = "default";

0 comments on commit 38c1d67

Please sign in to comment.