Skip to content

Commit f90046a

Browse files
committed
Update examples from @hebcal/core to @hebcal/hdate
1 parent 84bb56b commit f90046a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Create a Hebrew date. There are 3 basic forms for the `HDate()` constructor.
251251

252252
**Example**
253253
```js
254-
import {HDate, months} from '@hebcal/core';
254+
import {HDate, months} from '@hebcal/hdate';
255255

256256
const hd1 = new HDate();
257257
const hd2 = new HDate(new Date(2008, 10, 13));
@@ -339,7 +339,7 @@ including ordinal e.g. `'15th of Cheshvan, 5769'`.
339339

340340
**Example**
341341
```js
342-
import {HDate, months} from '@hebcal/core';
342+
import {HDate, months} from '@hebcal/hdate';
343343

344344
const hd = new HDate(15, months.CHESHVAN, 5769);
345345
console.log(hd.render('en')); // '15th of Cheshvan, 5769'
@@ -358,7 +358,7 @@ Renders this Hebrew date in Hebrew gematriya, regardless of locale.
358358

359359
**Example**
360360
```js
361-
import {HDate, months} from '@hebcal/core';
361+
import {HDate, months} from '@hebcal/hdate';
362362
const hd = new HDate(15, months.CHESHVAN, 5769);
363363
console.log(hd.renderGematriya()); // 'ט״ו חֶשְׁוָן תשס״ט'
364364
```
@@ -507,7 +507,7 @@ Note, short forms are case sensitive.
507507

508508
**Example**
509509
```js
510-
import {HDate, months} from '@hebcal/core';
510+
import {HDate, months} from '@hebcal/hdate';
511511

512512
const hd1 = new HDate(15, months.CHESHVAN, 5769);
513513
const hd2 = hd1.add(1, 'weeks'); // 7 Kislev 5769
@@ -532,7 +532,7 @@ The result is zero if the two dates are identical.
532532

533533
**Example**
534534
```js
535-
import {HDate, months} from '@hebcal/core';
535+
import {HDate, months} from '@hebcal/hdate';
536536

537537
const hd1 = new HDate(25, months.KISLEV, 5770);
538538
const hd2 = new HDate(15, months.CHESHVAN, 5769);

src/hdate.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class HDate {
7070
* be a number between 1-30, Hebrew month can be a number or string, and
7171
* Hebrew year is always a number.
7272
* @example
73-
* import {HDate, months} from '@hebcal/core';
73+
* import {HDate, months} from '@hebcal/hdate';
7474
*
7575
* const hd1 = new HDate();
7676
* const hd2 = new HDate(new Date(2008, 10, 13));
@@ -231,7 +231,7 @@ export class HDate {
231231
* Renders this Hebrew date as a translated or transliterated string,
232232
* including ordinal e.g. `'15th of Cheshvan, 5769'`.
233233
* @example
234-
* import {HDate, months} from '@hebcal/core';
234+
* import {HDate, months} from '@hebcal/hdate';
235235
*
236236
* const hd = new HDate(15, months.CHESHVAN, 5769);
237237
* console.log(hd.render('en')); // '15th of Cheshvan, 5769'
@@ -259,7 +259,7 @@ export class HDate {
259259
/**
260260
* Renders this Hebrew date in Hebrew gematriya, regardless of locale.
261261
* @example
262-
* import {HDate, months} from '@hebcal/core';
262+
* import {HDate, months} from '@hebcal/hdate';
263263
* const hd = new HDate(15, months.CHESHVAN, 5769);
264264
* console.log(hd.renderGematriya()); // 'ט״ו חֶשְׁוָן תשס״ט'
265265
* @param {boolean} [suppressNikud]
@@ -410,7 +410,7 @@ export class HDate {
410410
* | `month` | `M` | months |
411411
* | `year` | `y` | years |
412412
* @example
413-
* import {HDate, months} from '@hebcal/core';
413+
* import {HDate, months} from '@hebcal/hdate';
414414
*
415415
* const hd1 = new HDate(15, months.CHESHVAN, 5769);
416416
* const hd2 = hd1.add(1, 'weeks'); // 7 Kislev 5769
@@ -432,7 +432,7 @@ export class HDate {
432432
*
433433
* The result is zero if the two dates are identical.
434434
* @example
435-
* import {HDate, months} from '@hebcal/core';
435+
* import {HDate, months} from '@hebcal/hdate';
436436
*
437437
* const hd1 = new HDate(25, months.KISLEV, 5770);
438438
* const hd2 = new HDate(15, months.CHESHVAN, 5769);

0 commit comments

Comments
 (0)