File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,8 @@ export function greg2abs(date: Date): number {
119
119
* function would return only the date 13 November 2008.
120
120
* @param abs - R.D. number of days
121
121
* @example
122
- * const hd = new HDate(15, 'Cheshvan', 5769 );
123
- * const date = hd.greg( ); // 13 November 2008
122
+ * const abs = hebrew2abs(5769, months.CHESHVAN, 15 );
123
+ * const date = abs2greg(abs ); // 13 November 2008
124
124
* const year = date.getFullYear(); // 2008
125
125
* const monthNum = date.getMonth() + 1; // 11
126
126
* const day = date.getDate(); // 13
Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ function assertNumber(n: any, name: string) {
97
97
* @param year Hebrew year
98
98
* @param month Hebrew month
99
99
* @param day Hebrew date (1-30)
100
+ * @example
101
+ * const abs = hebrew2abs(5769, months.CHESHVAN, 15);
100
102
*/
101
103
export function hebrew2abs ( year : number , month : number , day : number ) : number {
102
104
assertNumber ( year , 'year' ) ;
You can’t perform that action at this time.
0 commit comments