fingerpich / jalali-moment

Display, parse, manipulate, validate and convert jalali (Persian, Khorshidi, Shamsi) or Gregorian (Miladi) dates and times.
https://fingerpich.github.io/jalali-moment/
MIT License
434 stars 69 forks source link

manipulating by day #24

Closed peymanebrahimi closed 7 years ago

peymanebrahimi commented 7 years ago

Does this method works correctly on version 2.1.2? m.add(1, "jDay"); or m.add(1 "jD"); inside unitOfTime type base: jDay and jD are defined, but they do not work for me.

fingerpich commented 7 years ago

Adding days in Jalali and Gregorian system are equal so use Gregorian system to add days as the next code m.add(1, 'day') but it will be OK as you expect. Thank you.

peymanebrahimi commented 7 years ago

then I use m.add(1, 'day') thanks