@@ -145,15 +145,6 @@ class NepaliDate {
145145 return this . timestamp
146146 }
147147
148- /**
149- * Parses a string representation of a Nepali calendar date and sets the NepaliDate object accordingly.
150- *
151- * @param {string } dateString - The string representation of the Nepali calendar date.
152- */
153- parse ( dateString : string ) {
154- this . set . apply ( this , parse ( dateString ) )
155- }
156-
157148 /**
158149 * Retrieves the year of the Nepali date in the Nepali calendar.
159150 *
@@ -419,10 +410,10 @@ class NepaliDate {
419410 year : number ,
420411 month : number ,
421412 date : number ,
422- hour : number = 0 ,
423- minute : number = 0 ,
424- second : number = 0 ,
425- ms : number = 0
413+ hour : number ,
414+ minute : number ,
415+ second : number ,
416+ ms : number
426417 ) {
427418 validateTime ( hour , minute , second , ms )
428419 const [ yearEn , month0EN , dayEn ] = dateConverter . nepaliToEnglish (
@@ -495,7 +486,9 @@ class NepaliDate {
495486 }
496487}
497488
498- NepaliDate . minimum = ( ) => new Date ( dateConverter . enMinYear ( ) , 0 , 1 )
499- NepaliDate . maximum = ( ) => new Date ( dateConverter . enMaxYear ( ) , 11 , 31 )
489+ NepaliDate . minimum = ( ) =>
490+ NepaliDate . fromEnglishDate ( dateConverter . enMinYear ( ) , 0 , 1 ) . getDateObject ( )
491+ NepaliDate . maximum = ( ) =>
492+ NepaliDate . fromEnglishDate ( dateConverter . enMaxYear ( ) , 11 , 31 ) . getDateObject ( )
500493
501494export default NepaliDate
0 commit comments